mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-24 17:42:46 +00:00
24 lines
627 B
JavaScript
24 lines
627 B
JavaScript
/**
|
|
* Configuration for the global end-to-end testing,
|
|
* placed in the project's root 'tests' folder.
|
|
* @type {import('vite').UserConfig}
|
|
* @see https://vitest.dev/config/
|
|
*/
|
|
const config = {
|
|
test: {
|
|
/**
|
|
* By default, vitest searches for the test files in all packages.
|
|
* For e2e tests, have vitest search only in the project root 'tests' folder.
|
|
*/
|
|
include: ['./tests/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
|
|
/**
|
|
* The default timeout of 5000ms is sometimes not enough for playwright.
|
|
*/
|
|
testTimeout: 30_000,
|
|
hookTimeout: 30_000,
|
|
},
|
|
};
|
|
|
|
export default config;
|