集成,总结MES功能
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.
 
 
 
 

24 line
516 B

  1. import { configUmiAlias, createConfig } from '@umijs/max/test';
  2. export default async () => {
  3. const config = await configUmiAlias({
  4. ...createConfig({
  5. target: 'browser',
  6. }),
  7. });
  8. console.log();
  9. return {
  10. ...config,
  11. testEnvironmentOptions: {
  12. ...(config?.testEnvironmentOptions || {}),
  13. url: 'http://localhost:8000',
  14. },
  15. setupFiles: [...(config.setupFiles || []), './tests/setupTests.jsx'],
  16. globals: {
  17. ...config.globals,
  18. localStorage: null,
  19. },
  20. };
  21. };