Skip to content

Commit 6aedee4

Browse files
authored
Merge pull request #541 from moreal/vocab-tools-fix
Fix vocab-tools generateCloner bug
2 parents ce1bdc2 + 32ba8d5 commit 6aedee4

6 files changed

Lines changed: 228 additions & 200 deletions

File tree

mise.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,28 @@ for PACKAGE in ${usage_packages}; do
132132
done
133133
'''
134134

135+
# Snapshot updates
136+
# Note: vocab uses @std/testing/snapshot which only works on Deno
137+
# vocab-tools has separate snapshots for each runtime
138+
[tasks."test:deno:update_snapshots"]
139+
description = "Update test snapshots for Deno"
140+
run = '''
141+
deno task -f @fedify/vocab-tools test -- --update
142+
deno task -f @fedify/vocab test -- --update
143+
'''
144+
145+
[tasks."test:node:update_snapshots"]
146+
description = "Update test snapshots for Node.js"
147+
run = "pnpm --filter @fedify/vocab-tools test:update_snapshots"
148+
149+
[tasks."test:bun:update_snapshots"]
150+
description = "Update test snapshots for Bun"
151+
run = "pnpm --filter @fedify/vocab-tools test:bun:update_snapshots"
152+
153+
[tasks."test:update_snapshots"]
154+
description = "Update test snapshots for all environments (Deno, Node.js, Bun)"
155+
depends = ["test:deno:update_snapshots", "test:node:update_snapshots", "test:bun:update_snapshots"]
156+
135157
# Documentation
136158
[tasks.docs]
137159
description = "Start the documentation development server"

packages/vocab-tools/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@
4343
"prepack": "pnpm build",
4444
"prepublish": "pnpm build",
4545
"pretest": "pnpm build",
46-
"test": "cd dist/ && node --test"
46+
"test": "node --experimental-transform-types --test",
47+
"pretest:bun": "pnpm build",
48+
"test:bun": "bun test",
49+
"pretest:update_snapshots": "pnpm build",
50+
"test:update_snapshots": "node --experimental-transform-types --test --test-update-snapshots",
51+
"pretest:bun:update_snapshots": "pnpm build",
52+
"test:bun:update_snapshots": "bun test --update-snapshots"
4753
},
4854
"keywords": [
4955
"Fedify",

0 commit comments

Comments
 (0)