Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

add to sd

Sara Vieira0ecca84a54f1
diff --git a/packages/webstudio-react-sdk/jest.config.js b/packages/webstudio-react-sdk/jest.config.js
index 716a7294c9..03c0db11ea 100644
--- a/packages/webstudio-react-sdk/jest.config.js
+++ b/packages/webstudio-react-sdk/jest.config.js
@@ -1,10 +1,6 @@
+// eslint-disable-next-line
+const base = require("jest-config/jest.config.js");
+
module.exports = {
- testEnvironment: "node",
- testMatch: ["<rootDir>/src/**/*.test.ts"],
- transform: {
- "^.+\\.tsx?$": "esbuild-jest",
- },
- moduleNameMapper: {
- "^~/(.*)$": "<rootDir>/src/$1",
- },
+ ...base,
};
diff --git a/packages/webstudio-react-sdk/package.json b/packages/webstudio-react-sdk/package.json
index 82f8ef3b18..896c790399 100644
--- a/packages/webstudio-react-sdk/package.json
+++ b/packages/webstudio-react-sdk/package.json
@@ -32,20 +32,18 @@
"@storybook/testing-library": "^0.0.11",
"@types/css-tree": "^1.0.7",
"@types/fs-extra": "^9.0.13",
- "@types/jest": "^27.4.1",
"@types/node": "^17.0.21",
"babel-loader": "^8.2.5",
"camelcase": "^6.3.0",
"css-tree": "^2.1.0",
"esbuild": "^0.14.25",
- "esbuild-jest": "^0.5.0",
"esbuild-node-externals": "^1.4.1",
"esbuild-node-loader": "^0.8.0",
- "jest": "^27.5.1",
"mdn-data": "2.0.23",
"react": "^17.0.2",
"react-docgen-typescript": "^2.2.2",
"react-dom": "^17.0.2",
+ "jest-config": "*",
"typescript": "^4.6.2"
},
"peerDependencies": {