1234567891011121314151617181920212223 |
- import { configUmiAlias, createConfig } from '@umijs/max/test';
- export default async () => {
- const config = await configUmiAlias({
- ...createConfig({
- target: 'browser',
- }),
- });
- console.log();
- return {
- ...config,
- testEnvironmentOptions: {
- ...(config?.testEnvironmentOptions || {}),
- url: 'http://localhost:8000',
- },
- setupFiles: [...(config.setupFiles || []), './tests/setupTests.jsx'],
- globals: {
- ...config.globals,
- localStorage: null,
- },
- };
- };
|