Replaced Markdown issue templates with structured YAML templates for bug reports, feature requests, performance issues, deployment help, and platform support. Added .prettierrc.json and .prettierignore for code formatting, a detailed CONTRIBUTING.md, and a pull request template. Updated CODE_OF_CONDUCT.md and README.md to reference new contribution guidelines. Added ESLint config, test scripts, and initial test files to improve project maintainability and onboarding.
39 lines
686 B
JavaScript
39 lines
686 B
JavaScript
import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config';
|
|
|
|
export default defineWorkersConfig({
|
|
test: {
|
|
poolOptions: {
|
|
workers: {
|
|
wrangler: { configPath: './wrangler.toml' },
|
|
},
|
|
},
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html', 'lcov'],
|
|
reportsDirectory: './coverage',
|
|
exclude: [
|
|
'node_modules/**',
|
|
'test/**',
|
|
'coverage/**',
|
|
'dist/**',
|
|
'*.config.js',
|
|
'*.config.ts'
|
|
],
|
|
include: [
|
|
'src/**/*.js',
|
|
'src/**/*.ts'
|
|
],
|
|
thresholds: {
|
|
global: {
|
|
branches: 80,
|
|
functions: 80,
|
|
lines: 80,
|
|
statements: 80
|
|
}
|
|
}
|
|
},
|
|
globals: true,
|
|
environment: 'node'
|
|
},
|
|
});
|