current-jest-spec
Get the name of the currently running Jest spec
Example:
// Mocked getUuid.js
import { getSpecName } from 'current-jest-spec';
function getUuid() {
return `UUID for ${getSpecName()}`;
}
Get the name of the currently running Jest spec
Example:
// Mocked getUuid.js
import { getSpecName } from 'current-jest-spec';
function getUuid() {
return `UUID for ${getSpecName()}`;
}
npm i current-jest-spec
0
0.1.1
MIT
4.08 kB
7