Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #26

Open
httran13 opened this issue Sep 26, 2023 · 1 comment
Open

[Bug] #26

httran13 opened this issue Sep 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@httran13
Copy link

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

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

@httran13 httran13 added the bug Something isn't working label Sep 26, 2023
@valentinpalkovic
Copy link
Contributor

Does your project use Vite or Webpack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants