-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
113 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* eslint-disable */ | ||
/* prettier-ignore */ | ||
// @ts-nocheck | ||
// noinspection JSUnusedGlobalSymbols | ||
// Generated by unplugin-auto-import | ||
export {} | ||
declare global { | ||
const afterAll: typeof import('vitest')['afterAll'] | ||
const afterEach: typeof import('vitest')['afterEach'] | ||
const assert: typeof import('vitest')['assert'] | ||
const beforeAll: typeof import('vitest')['beforeAll'] | ||
const beforeEach: typeof import('vitest')['beforeEach'] | ||
const chai: typeof import('vitest')['chai'] | ||
const describe: typeof import('vitest')['describe'] | ||
const expect: typeof import('vitest')['expect'] | ||
const it: typeof import('vitest')['it'] | ||
const suite: typeof import('vitest')['suite'] | ||
const test: typeof import('vitest')['test'] | ||
const vi: typeof import('vitest')['vi'] | ||
const vitest: typeof import('vitest')['vitest'] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import AutoImport from 'unplugin-auto-import/vite'; | ||
import { defineConfig } from 'vitest/config'; | ||
|
||
export default defineConfig({ | ||
test: { | ||
include: ['**/*.e2e-spec.ts'], | ||
environment: 'node', | ||
globals: true, | ||
root: './', | ||
testTimeout: 20000, | ||
hookTimeout: 30000, | ||
cache: false, | ||
reporters: ['verbose'], | ||
isolate: false, | ||
maxConcurrency: 1, | ||
pool: 'forks', | ||
poolOptions: { | ||
forks: { | ||
isolate: false, | ||
singleFork: true, | ||
minForks: 1, | ||
maxForks: 1, | ||
}, | ||
}, | ||
}, | ||
plugins: [ | ||
// This is required to build the test files with SWC | ||
// swc.vite({ | ||
// // Explicitly set the module type to avoid inheriting this value from a `.swcrc` config file | ||
// module: { type: 'nodenext' }, | ||
// }), | ||
AutoImport({ | ||
imports: ['vitest'], | ||
}), | ||
], | ||
}); |