storybookjs / addon-coverage

MIT License
18 stars 5 forks source link

[Bug] #26

Open httran13 opened 9 months ago

httran13 commented 9 months ago

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

  1. add addons to /.storybook/main.ts { name: "@storybook/addon-coverage", options: { istanbul: { nycrcPath: './../nyc.config.sb.js', }, }, },

  2. create nyc.config.sb.js at /nyc.config.sb.js

  3. add lines to nyc.config.sb.js 'use strict'; module.exports = { "tempDirectory": './.nyc_customout' };

  4. 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

Additional context

Add any other context about the problem here.

valentinpalkovic commented 8 months ago

Does your project use Vite or Webpack?