From 287f01b39abb9cf0b4547e69643b4b241f212649 Mon Sep 17 00:00:00 2001 From: Shingo Yamazaki Date: Mon, 27 May 2019 00:02:32 +0900 Subject: [PATCH] #290 Include *.tsx when running jest --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 72796fdfe..4aa098952 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "storybook": "start-storybook -s ./node_modules/@salesforce-ux/design-system -p 9001 -c .storybook", "test": "npm-run-all type-check test:jest test:storyshots", "test:storyshots": "NODE_ENV=test jest test/storyshots/*.test.js", - "test:jest": "jest test/*-spec.js", + "test:jest": "jest test/*-spec.js test/*-spec.tsx", "prepublish": "npm run build", "type-check": "tsc --noEmit", "type-check:watch": "npm run type-check -- --watch", @@ -107,7 +107,7 @@ "@types/react": "^16.8.12" }, "jest": { - "testRegex": "(/test/.*|\\.(test|spec))\\.js$", + "testRegex": "(/test/.*|\\.(test|spec))\\.(js|tsx)$", "setupFilesAfterEnv": [ "/test/setupTests.js" ],