StarRailCopilot/webapp/vitest.config.js

24 lines
627 B
JavaScript
Raw Normal View History

2023-09-09 16:22:01 +00:00
/**
* 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;