From 9b58c9d532dcd62d49e454d65df35bb6d142d9b9 Mon Sep 17 00:00:00 2001 From: Shane Friedman Date: Mon, 16 Sep 2024 14:52:41 -0400 Subject: [PATCH] Add back regular jest tests --- .github/workflows/check.yml | 3 +++ jest.config.cjs | 1 + package.json | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 492152d4..3e38b99a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/jest.config.cjs b/jest.config.cjs index c8c7e293..930e52bf 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -3,6 +3,7 @@ module.exports = { rootDir: "src", testEnvironment: "jsdom", extensionsToTreatAsEsm: [".ts", ".tsx"], + testPathIgnorePatterns: ["src/components/__tests__/ProseMirror.*.test.tsx"], moduleNameMapper: { "(.+)\\.js": "$1", }, diff --git a/package.json b/package.json index feefb14d..d5083163 100644 --- a/package.json +++ b/package.json @@ -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",