You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
924 B
TypeScript
32 lines
924 B
TypeScript
1 year ago
|
/*
|
||
|
* @Author: zhoux zhouxia@supervision.ltd
|
||
|
* @Date: 2023-11-22 10:02:59
|
||
|
* @LastEditors: zhoux zhouxia@supervision.ltd
|
||
|
* @LastEditTime: 2023-11-28 16:45:16
|
||
|
* @FilePath: \react-adpro-fabric\jest.config.ts
|
||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||
|
*/
|
||
|
import { configUmiAlias, createConfig } from '@umijs/max/test';
|
||
|
|
||
|
export default async () => {
|
||
|
const config = await configUmiAlias({
|
||
|
...createConfig({
|
||
|
target: 'browser',
|
||
|
}),
|
||
|
});
|
||
|
console.log(JSON.stringify(config));
|
||
|
|
||
|
return {
|
||
|
...config,
|
||
|
testEnvironmentOptions: {
|
||
|
...(config?.testEnvironmentOptions || {}),
|
||
|
url: 'http://localhost:8080',
|
||
|
},
|
||
|
setupFiles: [...(config.setupFiles || []), './tests/setupTests.jsx'],
|
||
|
globals: {
|
||
|
...config.globals,
|
||
|
localStorage: null,
|
||
|
},
|
||
|
};
|
||
|
};
|