File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 6161 "generate-json-schema" : " pnpm exec ts-json-schema-generator --no-type-check --path src/config/config.ts --type RawConfig --out config-schema.json" ,
6262 "prepublishOnly" : " SOURCEMAPS=false pnpm run -w build" ,
6363 "start" : " pnpm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js" ,
64- "test" : " pnpm run assert-git-version && vitest" ,
64+ "test" : " pnpm run assert-git-version && LC_ALL=C vitest" ,
6565 "test:ci" : " pnpm run test run" ,
6666 "test:debug" : " pnpm run test --silent=false --verbose=true" ,
6767 "test:e2e" : " vitest -c ./e2e/vitest.config.mts" ,
Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/consistent-type-imports */
2+ import assert from "node:assert" ;
23import { resolve } from "path" ;
34import { PassThrough } from "stream" ;
45import chalk from "chalk" ;
@@ -22,8 +23,10 @@ chalk.level = 0;
2223 global as unknown as { __RELATIVE_PACKAGE_PATH__ : string }
2324) . __RELATIVE_PACKAGE_PATH__ = ".." ;
2425
25- // Set `LC_ALL` to fix the language as English for the messages thrown by Yargs.
26- process . env . LC_ALL = "en" ;
26+ assert (
27+ process . env . LC_ALL === "C" ,
28+ "Expected `LC_ALL` env var to be 'C' in order get deterministic localized messages in tests"
29+ ) ;
2730
2831vi . mock ( "ansi-escapes" , ( ) => {
2932 return {
You can’t perform that action at this time.
0 commit comments