mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-22 07:26:39 +02:00
Remove karma tests
This commit is contained in:
parent
e96e5fdc74
commit
b8c53bdd49
14
package.json
14
package.json
|
@ -7,10 +7,8 @@
|
|||
"scripts": {
|
||||
"start": "node server.js",
|
||||
"lint": "eslint assets/**/*.js",
|
||||
"test": "karma start --single-run --no-auto-watch tests/karma.config.js",
|
||||
"test:watch": "karma start --auto-watch --no-single-run tests/karma.config.js",
|
||||
"test:mocha": "nyc mocha --require ./config/test.js --compilers babel-core/register \"./src/**/**/**/**/*.spec.js\"",
|
||||
"test:mocha:watch": "npm run test:mocha -- --watch",
|
||||
"test": "nyc mocha --require ./config/test.js --compilers babel-core/register \"./src/**/**/**/**/*.spec.js\"",
|
||||
"test:watch": "npm run test:mocha -- --watch",
|
||||
"css:watch": "nodemon -e scss -x \"npm run css:build\"",
|
||||
"css:build": "npm run css:sass -s && npm run css:prefix -s && npm run css:min -s",
|
||||
"css:sass": "node-sass --output-style expanded --include-path scss src/styles/scss/base.scss src/styles/css/base.css && node-sass --output-style expanded --include-path scss src/styles/scss/choices.scss src/styles/css/choices.css",
|
||||
|
@ -51,14 +49,6 @@
|
|||
"eslint-plugin-react": "^7.2.1",
|
||||
"jasmine-core": "2.4.1",
|
||||
"jsdom": "^11.1.0",
|
||||
"karma": "^1.1.0",
|
||||
"karma-coverage": "^1.0.0",
|
||||
"karma-es6-shim": "^1.0.0",
|
||||
"karma-htmlfile-reporter": "^0.3.4",
|
||||
"karma-jasmine": "^1.0.2",
|
||||
"karma-phantomjs-launcher": "^1.0.1",
|
||||
"karma-spec-reporter": "0.0.26",
|
||||
"karma-webpack": "^1.7.0",
|
||||
"mocha": "^3.4.2",
|
||||
"node-sass": "^3.4.2",
|
||||
"nodemon": "^1.9.1",
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
/* eslint-disable */
|
||||
var webpack = require('karma-webpack');
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
frameworks: ['jasmine'],
|
||||
files: [
|
||||
'../tests/**/*_spec.js',
|
||||
],
|
||||
plugins: [
|
||||
webpack,
|
||||
'karma-jasmine',
|
||||
'karma-phantomjs-launcher',
|
||||
'karma-coverage',
|
||||
'karma-spec-reporter',
|
||||
'karma-htmlfile-reporter',
|
||||
'es6-shim'
|
||||
],
|
||||
browsers: ['PhantomJS'],
|
||||
preprocessors: {
|
||||
'**/*_spec.js': ['webpack'],
|
||||
'src/**/*.js': ['webpack']
|
||||
},
|
||||
reporters: ['spec', 'coverage', 'html'],
|
||||
coverageReporter: {
|
||||
dir: '../tests/reports/coverage',
|
||||
reporters: [{
|
||||
type: 'html',
|
||||
}]
|
||||
},
|
||||
webpack: {
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /(bower_components|node_modules)/,
|
||||
loader: 'babel-loader'
|
||||
}],
|
||||
}
|
||||
},
|
||||
colors: true,
|
||||
webpackMiddleware: {
|
||||
noInfo: true
|
||||
},
|
||||
htmlReporter: {
|
||||
outputFile: 'results/unit-tests.html'
|
||||
}
|
||||
});
|
||||
};
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue