diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ee5fa10bf0..9612b5beaf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: # lowest verison here should also be in `engines` field - node_version: [18, "lts/*", "*"] + node_version: [18, "lts/*", "latest"] runs-on: ubuntu-latest steps: - name: Checkout Code diff --git a/package.json b/package.json index 5c721e415b..0991e561b6 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "scripts": { "test": "npm run build && npm run test:specs && npm run test:unit", "test:all": "npm test && npm run test:umd && npm run test:types && npm run test:lint", - "test:unit": "node --test --test-reporter=spec test/unit", + "test:unit": "node --test --test-reporter=spec test/unit/*.test.js", "test:specs": "node --test --test-reporter=spec test/run-spec-tests.js", "test:lint": "eslint .", "test:redos": "node test/recheck.js > vuln.js", diff --git a/test/unit/marked.test.js b/test/unit/marked.test.js index bbff1c04bf..c9c0925a12 100644 --- a/test/unit/marked.test.js +++ b/test/unit/marked.test.js @@ -7,6 +7,7 @@ describe('marked unit', () => { let marked; beforeEach(() => { marked = new Marked(); + setOptions(getDefaults()); }); describe('Test paragraph token type', () => {