I'm assuming i have some type of syntax error in "scripts" inside my package.json. I'm able to run .\node_modules\.bin\karma start inside powershell and karma starts right up and is able to find my test-spec.js but my "test": "./node_modules/karma/bin/karma start karma.conf.js" doesn't work. When i do type in npm test i receive '.' is not recognized as an internal or external command This is what i have in my My karma.conf.js
const webpackConfig = require('./webpack.config.js');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jquery-3.3.1', 'jasmine'],
files: [
'src/*.js',
'spec/*spec.js'
],
webpack: webpackConfig,
exclude: [
],
preprocessors: {
'src/*.js': ['webpack'],
'spec/*spec.js': ['webpack']
},
plugins: [
'karma-jquery',
'karma-webpack',
'karma-jasmine',
'karma-chrome-launcher',
'karma-jasmine-html-reporter'
],
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
concurrency: Infinity
});
};
Aucun commentaire:
Enregistrer un commentaire