diff --git a/packages/design-tokens/jest.config.js b/packages/design-tokens/jest.config.js new file mode 100644 index 00000000000..b11b3a7a160 --- /dev/null +++ b/packages/design-tokens/jest.config.js @@ -0,0 +1,6 @@ +const defaults = require('@talend/scripts-config-jest/jest.config.js'); + +module.exports = { + ...defaults, + testRegex: '(/__tests__/.*|src/|scripts/).*\\.test.(js|ts|tsx)$', +}; diff --git a/packages/design-tokens/package.json b/packages/design-tokens/package.json index f479fcadadd..57974bd901b 100644 --- a/packages/design-tokens/package.json +++ b/packages/design-tokens/package.json @@ -12,7 +12,7 @@ "build:lib": "talend-scripts build && pnpm build:umd:dev && pnpm build:umd:prod && pnpm test:umd", "test": "echo no test for @talend/design-tokens", "test:cov": "echo no test for @talend/design-tokens", - "test:umd": "jest scripts/umd.test.js", + "test:umd": "talend-scripts test scripts/umd.test.js", "lint": "talend-scripts lint" }, "keywords": [