Skip to content
Snippets Groups Projects
Commit 7fd48c93 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Get rid of karma-chai

parent 30975923
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function(config) {
config.set({
basePath: 'dist',
frameworks: ['mocha', 'chai'],
frameworks: ['mocha'],
files: [
{pattern: './*.js', included: true, watched: true, served: true, type: 'module'},
{pattern: './**/*', included: false, watched: true, served: true},
......
......@@ -5,7 +5,6 @@
"devDependencies": {
"chai": "^4.2.0",
"karma": "^4.2.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.0.0",
"karma-mocha": "^1.3.0",
"mocha": "^6.2.0",
......
......@@ -5,7 +5,9 @@ import multiEntry from 'rollup-plugin-multi-entry';
import copy from 'rollup-plugin-copy';
import serve from 'rollup-plugin-serve';
import consts from 'rollup-plugin-consts';
import del from 'rollup-plugin-delete';
import json from 'rollup-plugin-json';
import chai from 'chai';
const pkg = require('./package.json');
const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : 'local';
......@@ -17,7 +19,17 @@ export default {
file: 'dist/bundle.js',
format: 'esm'
},
onwarn: function (warning, warn) {
// ignore chai warnings
if (warning.code === 'CIRCULAR_DEPENDENCY') {
return;
}
warn(warning);
},
plugins: [
del({
targets: 'dist/*'
}),
multiEntry(),
consts({
environment: build,
......@@ -29,7 +41,10 @@ export default {
}
}),
commonjs({
include: 'node_modules/**'
include: 'node_modules/**',
namedExports: {
'chai': Object.keys(chai),
}
}),
json(),
copy({
......
import {assert} from 'chai';
import * as i18next from '../i18next.js';
describe('i18next', () => {
......
import {expect, assert} from 'chai';
import * as utils from '../utils';
import * as styles from '../styles';
import '../vpu-mini-spinner.js';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment