File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,6 +132,28 @@ for PACKAGE in ${usage_packages}; do
132132done
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 ]
137159description = " Start the documentation development server"
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments