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
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ debug:
REACT_APP_DEBUG=true npm start

test:
node metadata_fetch.mjs
npm run test

deploy-setup:
Expand Down
6 changes: 5 additions & 1 deletion metadata_fetch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ let metadataUS = null;
let metadataUK = null;
let metadataCA = null;
const __dirname = path.dirname(new URL(import.meta.url).pathname);
// Fix for Windows path issues
const normalizedDirname = __dirname.startsWith("/")
? __dirname.slice(1)
: __dirname;
const filePath = path.join(
__dirname,
normalizedDirname,
"src",
"__tests__",
"__setup__",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"pretest": "node metadata_fetch.mjs",
"test": "jest",
"eject": "react-scripts eject",
"fix": "eslint --fix --ext js,jsx . && prettier -w .",
Expand Down