karma-runner / karma-safari-launcher

A Karma plugin. Launcher for Safari.
MIT License
19 stars 15 forks source link

Tests do not run after karma update to v4.0.0 #31

Closed plentymonkey closed 5 years ago

plentymonkey commented 5 years ago

ERROR [karma-server]: TypeError: Cannot read property 'push' of undefined

If I remove Safari from karma.config.jsthe tests run through.

That's how the config looks like:

config.set({
        frameworks: ['jasmine'],
        files: ['test/main.js'],
        preprocessors: {
            'test/main.js': ['webpack', 'sourcemap']
        },
        webpack: require('./config/webpack.test.js'),
        reporters: [
            'progress',
            'kjhtml',
            'coverage-istanbul'
        ],
        autoWatch: true,
        browsers: ['Chrome', 'Firefox', 'Safari'],
...