Файли
openidea/fixtures/mocha-app/package.json
T
LU XIANGRUIтаwildcatDownstairs 70702934d1 feat(run): run Mocha tests with a test tree and Rerun Failed Tests (#5173)
Mocha runs showed no test tree, and single tests ran with Jest's `-t`. A `package.json` script that runs `mocha` is now a test configuration with `testRunner: "mocha"`. Test runs import the IDE's hook (`mochaHook.js`, a `data:` URL in `NODE_OPTIONS`), which prints a record per finished test (file, suite chain, status, duration, declaration line, error) next to the run's own reporter; the records become the tree and are hidden from the console. Gutter icons, Rerun Failed Tests and running selected tests use Mocha's own `--grep`. New fixture `fixtures/mocha-app`, run by `smoke/run.test.ts` in the TypeScript job.

Closes #5153

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-22 15:24:38 +08:00

14 рядки
273 B
JSON

{
"name": "openidea-fixture-pricing",
"version": "0.1.0",
"private": true,
"description": "OpenIDEA QA fixture: Mocha specs for a small pricing module",
"type": "module",
"scripts": {
"test": "mocha"
},
"devDependencies": {
"mocha": "^10.8.0"
}
}