diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecc17f6ee..0669cee9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [18, 20] + node-version: ['18', '20', '22'] steps: - uses: actions/checkout@v4 diff --git a/.npmrc b/.npmrc index dfa320142..ec57b5f76 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -node-options="--no-warnings --experimental-json-modules" \ No newline at end of file +node-options="--no-warnings --no-experimental-global-navigator" diff --git a/package.json b/package.json index 60aa4dbfd..11ec73a39 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "test": "npm-run-all -s lint build test:unit test:browser", "test:benchmark": "npm run test:unzip-benchmark-data && npx playwright test --workers=1 --config=test/benchmark/playwright.config.mjs && npm run test:cleanup-benchmark-data", "test:browser": "karma start karma.conf.cjs", - "test:unit": "c8 node --test-reporter spec --test test/unit", + "test:unit": "c8 node --test-reporter spec --test test/unit/**/*.test.js", "test:unzip-benchmark-data": "tar -xvf test/benchmark/tokyo_canned_data.zip -C test/benchmark", "test:cleanup-benchmark-data": "rm test/benchmark/tokyo_*_canned_osm_data.js", "translations": "node scripts/update_translations.js"