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

istanbulOptions does not accpect js and ts extension #74

Open
koushikdutta opened this issue Mar 6, 2021 · 0 comments
Open

istanbulOptions does not accpect js and ts extension #74

koushikdutta opened this issue Mar 6, 2021 · 0 comments

Comments

@koushikdutta
Copy link

koushikdutta commented Mar 6, 2021

I have tried include ts extension with this plugin. But not sure why it's not happening. Following ways I have tried...

mocha_istanbul: {
            test: {
                src: [
                    './src/**/*.test.js',
                    './src/**/*.test.ts',
                ],
                options: {
                    coverage: true,
                    coverageFolder: './reports',
                    mochaOptions: ['-r', './babel-register.js'],
                    print: 'both',
                    root: './src',
                    istanbulOptions: ['--extension', '[".js", ".ts"]'],
                    reportFormats: ['cobertura', 'lcov']
                }
            }
        }
@koushikdutta koushikdutta changed the title How do I add extension in the istanbulOptions istanbulOptions does not accpect js and ts extension Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant