This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
viscord/vitest.config.js

24 lines
591 B
JavaScript
Raw Permalink Normal View History

2022-07-19 18:07:59 -04:00
/**
* Config for global end-to-end tests
* placed in project root tests folder
* @type {import('vite').UserConfig}
* @see https://vitest.dev/config/
*/
const config = {
test: {
/**
* By default, vitest search test files in all packages.
* For e2e tests have sense search only is project root tests folder
*/
include: ['./tests/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
/**
* A default timeout of 5000ms is sometimes not enough for playwright.
*/
testTimeout: 120000 * 5,
hookTimeout: 120000 * 5,
},
};
export default config;