Skip to content

Commit

Permalink
chore: migarte node module tests to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Nov 1, 2023
1 parent b2a8ff3 commit 244136c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test:unit": "vitest",
"test:node": "vitest run --config=./test/node/vitest.config.ts",
"test:browser": "playwright test -c ./test/browser/playwright.config.ts",
"test:modules:node": "jest --config=./test/modules/node/jest.config.js",
"test:modules:node": "vitest run --config=./test/modules/node/vitest.config.ts",
"test:modules:browser": "playwright test -c ./test/modules/browser/playwright.config.ts",
"test:ts": "ts-node test/typings/run.ts",
"prepare": "pnpm simple-git-hooks init",
Expand Down
29 changes: 0 additions & 29 deletions test/jest.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/modules/node/node-esm-tests/package.json

This file was deleted.

7 changes: 7 additions & 0 deletions test/modules/node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"types": ["vitest/globals"]
},
"include": ["./**/*.test.ts"]
}
10 changes: 10 additions & 0 deletions test/modules/node/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
globals: true,
dir: __dirname,
environment: 'node',
testTimeout: 60_000,
},
})

0 comments on commit 244136c

Please sign in to comment.