'init_again'
Change-Id: Ib7ecdb9f5baeab1e4681152a57b936edf7475b35
diff --git a/jest.config.ts b/jest.config.ts
new file mode 100644
index 0000000..1de2a1a
--- /dev/null
+++ b/jest.config.ts
@@ -0,0 +1,23 @@
+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,
+ },
+ };
+};