Skip to content

[Bug] #26

Open
Open

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions