1
0
mirror of https://github.com/qntm/fastjson synced 2026-03-24 15:54:53 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
qntm
49322e8dae
Update package.json (#37) 2025-12-23 00:13:19 +00:00
qntm
4a09a44e76
Use Node Test Runner (#36)
* Update package.json

* Update index.test.js
2025-12-22 22:01:58 +00:00
2 changed files with 2 additions and 5 deletions

View File

@ -19,16 +19,14 @@
], ],
"scripts": { "scripts": {
"bench": "node ./benchmarks/index.js", "bench": "node ./benchmarks/index.js",
"unit": "c8 --100 mocha", "unit": "node --test --experimental-test-coverage",
"postpublish": "npm version patch && git push", "postpublish": "npm version patch && git push",
"standard": "standard", "standard": "standard",
"test": "npm run standard && npm run unit" "test": "npm run standard && npm run unit"
}, },
"devDependencies": { "devDependencies": {
"benchmark": "^2.1.4", "benchmark": "^2.1.4",
"c8": "^10.1.2",
"chance": "^1.1.7", "chance": "^1.1.7",
"mocha": "^11.0.0",
"standard": "^17.0.0" "standard": "^17.0.0"
} }
} }

View File

@ -1,6 +1,5 @@
/* eslint-env mocha */
import assert from 'node:assert/strict' import assert from 'node:assert/strict'
import { describe, it } from 'node:test'
import { parse, stringify } from '../src/index.js' import { parse, stringify } from '../src/index.js'