Skip to content

Commit

Permalink
Add back regular jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smoores-dev committed Sep 16, 2024
1 parent 70c5235 commit 9b58c9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ jobs:
- name: Install dependencies
run: yarn

- uses: browser-actions/setup-chrome@v1
- uses: browser-actions/setup-firefox@v1

- name: Test
run: yarn test
1 change: 1 addition & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
rootDir: "src",
testEnvironment: "jsdom",
extensionsToTreatAsEsm: [".ts", ".tsx"],
testPathIgnorePatterns: ["src/components/__tests__/ProseMirror.*.test.tsx"],
moduleNameMapper: {
"(.+)\\.js": "$1",
},
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"fix:toc": "markdown-toc --bullets='-' -i README.md",
"fix": "concurrently -P 'npm:fix:* {@}' --",
"prepack": "yarn build",
"test": "wdio run ./wdio.conf.ts"
"test:wdio": "wdio run ./wdio.conf.ts",
"test:unit": "jest",
"test": "yarn test:unit && yarn test:wdio"
},
"devDependencies": {
"@jest/globals": "^29.6.2",
Expand Down

0 comments on commit 9b58c9d

Please sign in to comment.