Skip to content

Commit

Permalink
#519338 fixed test for sitecore-jss-nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-ruslanmatkovskyi committed Mar 31, 2022
1 parent 335dc0b commit c383d7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sitecore-jss-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
"test": "mocha --require ts-node/register/transpile-only --require ./src/tests/shim.ts ./src/tests/jsdom-setup.ts ./src/tests/enzyme-setup.ts \"./src/**/*.test.ts\" \"./src/**/*.test.tsx\" --exit",
"test": "mocha --require ./test/setup.js \"./src/**/*.test.ts\" \"./src/**/*.test.tsx\" --exit",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
"generate-docs": "npx typedoc --plugin typedoc-plugin-markdown --readme none --out ../../ref-docs/sitecore-jss-nextjs src/index.ts --githubPages false"
Expand Down Expand Up @@ -49,6 +49,7 @@
"enzyme": "^3.10.0",
"eslint": "^7.15.0",
"eslint-plugin-react": "^7.21.5",
"isomorphic-fetch": "^3.0.0",
"jsdom": "^15.1.1",
"mocha": "^8.1.3",
"next": "^12.1.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/sitecore-jss-nextjs/test/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require('ts-node/register/transpile-only');
require('isomorphic-fetch');
require('../src/tests/shim.ts');
require('../src/tests/jsdom-setup.ts');
require('../src/tests/enzyme-setup.ts');
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3906,6 +3906,7 @@ __metadata:
enzyme: ^3.10.0
eslint: ^7.15.0
eslint-plugin-react: ^7.21.5
isomorphic-fetch: ^3.0.0
jsdom: ^15.1.1
mocha: ^8.1.3
next: ^12.1.0
Expand Down

0 comments on commit c383d7e

Please sign in to comment.