Skip to content

Commit

Permalink
chore: fix tests in node v21 (#3209)
Browse files Browse the repository at this point in the history
* chore: fix tests in node v21

* chore: use latest for node version
  • Loading branch information
UziTech committed Mar 4, 2024
1 parent c831f35 commit daa511d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions test/unit/marked.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe('marked unit', () => {
let marked;
beforeEach(() => {
marked = new Marked();
setOptions(getDefaults());
});

describe('Test paragraph token type', () => {
Expand Down

0 comments on commit daa511d

Please sign in to comment.