Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,19 @@ jobs:
S3_REGION: us-east-1
DATABASE_URL: mysql://root:testpass@localhost:3306/test_db

node_unit_tests:
name: node:test unit tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@main
- uses: ./.github/actions/ci-setup

- name: node:test unit tests
run: pnpm test:node:nodb
env:
DATABASE_URL: file:./test.db

node_postgresql:
name: node:test PostgreSQL
runs-on: ubuntu-latest
Expand All @@ -244,8 +257,8 @@ jobs:
- uses: actions/checkout@main
- uses: ./.github/actions/ci-setup

- name: node:test tests
run: pnpm test:node
- name: node:test database tests
run: pnpm test:node:db
env:
DATABASE_URL: postgres://testuser:testpass@localhost:5432/test_db

Expand All @@ -257,8 +270,8 @@ jobs:
- uses: actions/checkout@main
- uses: ./.github/actions/ci-setup

- name: node:test tests
run: pnpm test:node
- name: node:test database tests
run: pnpm test:node:db
env:
DATABASE_URL: file:./test.db

Expand All @@ -277,8 +290,8 @@ jobs:
- uses: actions/checkout@main
- uses: ./.github/actions/ci-setup

- name: node:test tests
run: pnpm test:node
- name: node:test database tests
run: pnpm test:node:db
env:
DATABASE_URL: mysql://root:testpass@localhost:3306/test_db

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"test:types": "tsc",
"test:debug": "node --inspect-brk ./node_modules/.bin/jest",
"test:admin-ui": "jest tests/admin-ui-tests",
"test:node": "node --import tsx --test --test-concurrency 4 tests2/*.test.ts",
"test:node:only": "node --import tsx --test-only tests2/*.test.ts",
"test:node:db": "node --import tsx --test --test-concurrency 4 tests2/*.testdb.ts",
"test:node:nodb": "node --import tsx --test --test-concurrency 4 tests2/*.test.ts tests2/**/*.test.ts",
"lint": "eslint",
"lint:fix": "eslint --fix",
"build": "preconstruct build",
Expand All @@ -37,7 +37,7 @@
"@changesets/get-release-plan": "^4.0.0",
"@eslint/js": "^9.2.0",
"@preconstruct/cli": "^2.8.9",
"@types/jest": "^29.0.0",
"@types/jest": "^30.0.0",
"@types/node": "^22.0.0",
"@types/node-fetch": "^2.5.12",
"@types/react": "^19.0.0",
Expand All @@ -46,8 +46,8 @@
"esbuild-jest": "^0.5.0",
"eslint": "^9.2.0",
"eslint-plugin-react-hooks": "5.2.0",
"jest": "^29.0.0",
"jest-environment-jsdom": "^29.0.0",
"jest": "^30.0.0",
"jest-environment-jsdom": "^30.0.0",
"prettier": "^3.5.1",
"tsx": "^4.0.0",
"typescript": "^5.5.0",
Expand Down
17 changes: 0 additions & 17 deletions packages/core/tests/utils.test.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/fields-document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
"@keystone-6/core": "workspace:^",
"@testing-library/react": "^16.0.0",
"@types/is-hotkey": "^0.1.7",
"jest-diff": "^29.0.0",
"pretty-format": "^29.0.0",
"jest-diff": "^30.0.0",
"pretty-format": "^30.0.0",
"slate-hyperscript": "^0.100.0"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test('editor equality mismatch', () => {
</editor>
)
)
).toThrowError()
).toThrow()
})

test('cursor in the middle of text', () => {
Expand Down Expand Up @@ -330,7 +330,7 @@ test('marks that conflict with .marks', () => {
</paragraph>
</editor>
)
).toThrowError()
).toThrow()
})

test('differing current marks', () => {
Expand Down
Loading
Loading