You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
516 B
23 lines
516 B
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, |
|
}, |
|
}; |
|
};
|
|
|