Description
openedon Sep 26, 2023
Describe the bug
nycrcPath does not seem to be working.
A clear and concise description of what the bug is.
I am trying to use nyc.config.js but setting this in nycrcPath doesnt do anything.
Steps to reproduce the behavior
-
add addons to /.storybook/main.ts
{
name: "@storybook/addon-coverage",
options: {
istanbul: {
nycrcPath: './../nyc.config.sb.js',
},
},
}, -
create nyc.config.sb.js at /nyc.config.sb.js
-
add lines to nyc.config.sb.js
'use strict';
module.exports = {
"tempDirectory": './.nyc_customout'
}; -
Run storybook test runner
Expected behavior
expected the temporary directory to use .nyc_customout temp directory during test runner but .nyc_out is being used which is the default temporary directory
Screenshots and/or logs
If applicable, add screenshots and/or logs to help explain your problem.
Environment
- OS: iOS
- Node.js version: v18.16.1
- NPM version: 9.5.1
- Browser (if applicable): [e.g. chrome, safari]
- Browser version (if applicable): [e.g. 22]
- Device (if applicable): [e.g. iPhone6]
Additional context
Add any other context about the problem here.