Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .config/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,21 @@ export default defineConfig({
test: {
// Enable global APIs for CommonJS test files.
globals: true,
// Phase 1 packages use runtime-style test entrypoints.
include: ['test/test.{js,mjs,cjs,ts,mts,cts}'],
// Phase 1/2 packages use runtime-style, *.test, and a few named entrypoints.
include: [
'test/test.{js,mjs,cjs,ts,mts,cts}',
'test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts}',
'test/{as-input-plugin,as-output-plugin,form,function,misc,sourcemaps}.{js,mjs,cjs,ts,mts,cts}'
],
exclude: [
'**/test/fixtures/**',
'**/test/helpers/**',
'**/test/node_modules/**',
'**/test/recipes/**',
'**/test/output/**',
'**/test/snapshots/**',
'**/test/types.ts'
],
// Keep snapshots in the same location used by Ava.
resolveSnapshotPath: (testPath, snapExt) =>
path.join(path.dirname(testPath), 'snapshots', path.basename(testPath) + snapExt)
Expand Down
12 changes: 2 additions & 10 deletions packages/babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
"ci:lint": "pnpm build && pnpm lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm test -- --verbose",
"ci:test": "pnpm test -- --reporter=verbose",
"prebuild": "del-cli dist",
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
"prerelease": "pnpm build",
"pretest": "pnpm build",
"release": "pnpm --workspace-root package:release $(pwd)",
"test": "ava",
"test": "vitest --config ../../.config/vitest.config.mts run",
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
},
"files": [
Expand Down Expand Up @@ -83,14 +83,6 @@
"source-map": "^0.7.4"
},
"types": "./types/index.d.ts",
"ava": {
"files": [
"!**/fixtures/**",
"!**/helpers/**",
"!**/recipes/**",
"!**/types.ts"
]
},
"contributors": [
"Bogdan Chadkin <trysound@yandex.ru>",
"Mateusz Burzyński <mateuszburzynski@gmail.com> (https://github.com/Andarist)"
Expand Down
Loading
Loading