How to use the @blueprintjs/webpack-build-scripts.karmaConfig function in @blueprintjs/webpack-build-scripts

To help you get started, we’ve selected a few @blueprintjs/webpack-build-scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github palantir / blueprint / packages / karma-build-scripts / createKarmaConfig.js View on Github external
"text/x-typescript": ["ts", "tsx"],
        },
        port: KARMA_SERVER_PORT,
        preprocessors: {
            [path.join(dirname, "test/**/*.ts")]: ["sourcemap"],
            [path.join(dirname, "test/index.ts")]: ["webpack", "sourcemap"],
        },
        // define where to save final remapped coverage reports
        remapCoverageReporter: {
            'text-summary': null,
            html: './coverage/html',
            cobertura: './coverage/cobertura.xml'
        },
        reporters: ["mocha"],
        singleRun: true,
        webpack: webpackBuildScripts.karmaConfig,
        webpackMiddleware: {
            noInfo: true,
            stats: {
                children: false,
                chunks: false,
            },
        },
    };

    // enable JUnit reporter only if env variable is set (such as on Circle)
    if (process.env.JUNIT_REPORT_PATH) {
        const outputDir = path.join(
            __dirname,
            "../..",
            process.env.JUNIT_REPORT_PATH,
            path.basename(dirname),

@blueprintjs/webpack-build-scripts

Webpack build scripts for @blueprintjs packages

Apache-2.0
Latest version published 2 months ago

Package Health Score

71 / 100
Full package analysis

Similar packages