node-core-test icon indicating copy to clipboard operation
node-core-test copied to clipboard

Node 18's node:test, as an npm package

Results 10 node-core-test issues
Sort by recently updated
recently updated
newest added

`before`, `beforeEach`, `afterEach` and `after` hooks of other tests in a file gets called whenever a singular test is intended to be run. See example When you run `node --test...

Atm the package can't be consumed in browser via direct ESM/import-maps. Is there a point in adding ESM entry?

Hello! Less of a bug, more of support issue. Working with this, wanted to try and get code coverage, and currently seeing this: ``` ℹ ------------------------------------------------------------------------------- ℹ file | line...

- [string.prototype.replaceall](https://www.npmjs.com/package/string.prototype.replaceall) seems like an excessive dependency to use here when we can use regex replace with the `g` parameter. ( https://stackoverflow.com/a/17606289 ) there are alternative implementations that take 4...

@MoLow I would like to update this repo from node core. What's your process for applying the patches, as in https://github.com/nodejs/node-core-test/pull/45?

Various improvements to the TypeScript types: - Add `TestOptions.only` - Add `done` param to `TestFn` - Update `test` ReturnType to `Promise` - Remove `ItContext` and replace param with in `it`...

This module behaves notably differently when it comes to printing stack traces when test groups fail. Here is a simple test: ```js const assert = require('assert') const test = require('node:test')...

bug

Apparently it does not work either

- https://github.com/nodejs/node/blob/2fe4e9473fb50630326754886dee1d301a1a661e/Makefile#L1340-L1375 - https://github.com/nodejs/node/blob/2fe4e9473fb50630326754886dee1d301a1a661e/.eslintrc.js - https://github.com/nodejs/node/tree/2fe4e9473fb50630326754886dee1d301a1a661e/tools/eslint-rules - https://github.com/nodejs/node/blob/2fe4e9473fb50630326754886dee1d301a1a661e/tools/node_modules/eslint-plugin-node-core/index.js

enhancement

Ref: https://github.com/nodejs/admin/issues/928 This PR introduces a major upgrade to the package, adding support for Node.js v23 features. Please note that the minimum required Node.js version is now v18, which was...