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

Merge branch 'switch-to-esm-chai' into 'master'

Switch from chai to @esm-bundle/chai

See merge request !44
parents d1d0bb2d b79f779d
Branches
No related tags found
1 merge request!44Switch from chai to @esm-bundle/chai
Pipeline #25347 passed
Showing
with 14 additions and 56 deletions
import {assert} from 'chai'; import {assert} from '@esm-bundle/chai';
import '../src/dbp-file-source'; import '../src/dbp-file-source';
import '../src/demo'; import '../src/demo';
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"@rollup/plugin-json": "^4.1.0", "@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-url": "^6.0.0", "@rollup/plugin-url": "^6.0.0",
"chai": "^4.2.0", "@esm-bundle/chai": "^4.2.0",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"karma": "^6.0.0", "karma": "^6.0.0",
......
...@@ -22,13 +22,6 @@ export default (async () => { ...@@ -22,13 +22,6 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true sourcemap: true
}, },
onwarn: function (warning, warn) {
// ignore chai warnings
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/chai/')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*' targets: 'dist/*'
......
import {assert} from 'chai'; import {assert} from '@esm-bundle/chai';
import '../src/dbp-knowledge-base-web-page-element-view.js'; import '../src/dbp-knowledge-base-web-page-element-view.js';
import '../src/dbp-knowledge-base-web-page-element-view-demo.js'; import '../src/dbp-knowledge-base-web-page-element-view-demo.js';
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"@rollup/plugin-commonjs": "^18.0.0", "@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-json": "^4.1.0", "@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-node-resolve": "^11.0.0",
"chai": "^4.2.0", "@esm-bundle/chai": "^4.2.0",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"i18next-scanner": "^3.0.0", "i18next-scanner": "^3.0.0",
......
...@@ -19,13 +19,6 @@ export default { ...@@ -19,13 +19,6 @@ export default {
format: 'esm', format: 'esm',
sourcemap: true sourcemap: true
}, },
onwarn: function (warning, warn) {
// ignore chai warnings
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/chai/')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*' targets: 'dist/*'
......
import {assert, expect} from 'chai'; import {assert, expect} from '@esm-bundle/chai';
import '../src/dbp-language-select.js'; import '../src/dbp-language-select.js';
import '../src/demo.js'; import '../src/demo.js';
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"@rollup/plugin-json": "^4.1.0", "@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-url": "^6.0.0", "@rollup/plugin-url": "^6.0.0",
"chai": "^4.2.0", "@esm-bundle/chai": "^4.2.0",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"i18next-scanner": "^3.0.0", "i18next-scanner": "^3.0.0",
......
...@@ -50,13 +50,6 @@ export default (async () => { ...@@ -50,13 +50,6 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true sourcemap: true
}, },
onwarn: function (warning, warn) {
// ignore chai warnings
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/chai/')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*' targets: 'dist/*'
......
import {assert} from 'chai'; import {assert} from '@esm-bundle/chai';
import '../src/dbp-matomo'; import '../src/dbp-matomo';
suite('dbp-matomo', () => { suite('dbp-matomo', () => {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"@rollup/plugin-json": "^4.0.0", "@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-url": "^6.0.0", "@rollup/plugin-url": "^6.0.0",
"chai": "^4.2.0", "@esm-bundle/chai": "^4.2.0",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"i18next-scanner": "^3.0.0", "i18next-scanner": "^3.0.0",
......
...@@ -20,13 +20,6 @@ export default { ...@@ -20,13 +20,6 @@ export default {
format: 'esm', format: 'esm',
sourcemap: true sourcemap: true
}, },
onwarn: function (warning, warn) {
// ignore chai warnings
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/chai/')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*' targets: 'dist/*'
......
import {assert} from 'chai'; import {assert} from '@esm-bundle/chai';
import '../src/dbp-notification'; import '../src/dbp-notification';
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-replace": "^2.3.3", "@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-url": "^6.0.0", "@rollup/plugin-url": "^6.0.0",
"chai": "^4.2.0", "@esm-bundle/chai": "^4.2.0",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"i18next-scanner": "^3.0.0", "i18next-scanner": "^3.0.0",
......
...@@ -22,13 +22,6 @@ export default (async () => { ...@@ -22,13 +22,6 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true sourcemap: true
}, },
onwarn: function (warning, warn) {
// ignore chai warnings
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/chai/')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*' targets: 'dist/*'
......
import {assert} from 'chai'; import {assert} from '@esm-bundle/chai';
import '../src/dbp-organization-select.js'; import '../src/dbp-organization-select.js';
import '../src/demo.js'; import '../src/demo.js';
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"@rollup/plugin-json": "^4.1.0", "@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-url": "^6.0.0", "@rollup/plugin-url": "^6.0.0",
"chai": "^4.2.0", "@esm-bundle/chai": "^4.2.0",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"i18next-scanner": "^3.0.0", "i18next-scanner": "^3.0.0",
......
...@@ -23,13 +23,6 @@ export default (async () => { ...@@ -23,13 +23,6 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true sourcemap: true
}, },
onwarn: function (warning, warn) {
// ignore chai warnings
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/chai/')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*' targets: 'dist/*'
......
import {assert} from 'chai'; import {assert} from '@esm-bundle/chai';
import '../src/dbp-person-profile-demo.js'; import '../src/dbp-person-profile-demo.js';
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-replace": "^2.3.3", "@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-url": "^6.0.0", "@rollup/plugin-url": "^6.0.0",
"chai": "^4.2.0", "@esm-bundle/chai": "^4.2.0",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"i18next-scanner": "^3.0.0", "i18next-scanner": "^3.0.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment