Skip to content

Commit 3663f74

Browse files
committed
Making compatibility test a workspace having min fixed dependencies and testing it in the usual workflow.
1 parent a6ed3af commit 3663f74

7 files changed

Lines changed: 377 additions & 55 deletions

File tree

.github/workflows/compat.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/node.js.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
run: pnpm test:cjs
4848
- name: ESM test
4949
run: pnpm test:esm
50+
- name: Compatibility test
51+
run: pnpm test:compat
5052
- name: Issue 952 # see https://github.com/RobinTail/express-zod-api/issues/952
5153
run: pnpm test:952
5254
report:

compat-test/package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
{
2+
"name": "compat-test",
23
"type": "module",
34
"private": true,
4-
"description": "This file is a subject for populating by a CI workflow"
5+
"scripts": {
6+
"pretest": "echo 'new Documentation({ numericRange: {}, });' > sample.ts",
7+
"test": "eslint --fix && vitest --run",
8+
"posttest": "rm sample.ts"
9+
},
10+
"dependencies": {
11+
"@express-zod-api/migration": "workspace:*",
12+
"express-zod-api": "workspace:*",
13+
"express": "catalog:min",
14+
"typescript": "catalog:min",
15+
"http-errors": "catalog:min",
16+
"zod": "3.25.35"
17+
},
18+
"devDependencies": {
19+
"eslint": "catalog:min",
20+
"typescript-eslint": "catalog:min"
21+
}
522
}

compat-test/sample.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"test:example": "pnpm -F example test",
1111
"test:cjs": "pnpm -F cjs-test test",
1212
"test:esm": "pnpm -F esm-test test",
13+
"test:compat": "pnpm -F compat-test test",
1314
"test:952": "pnpm -F issue952-test test",
1415
"bench": "pnpm -F express-zod-api bench",
1516
"lint": "eslint && prettier *.md **/*.md --check",

0 commit comments

Comments
 (0)