Skip to content

Commit 9833d1d

Browse files
committed
fix: disable dublicate tests compas openscd
1 parent 11df56e commit 9833d1d

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

src/editors/substation/autogen-substation/autogen-substation.ts renamed to src/compas-editors/autogen-substation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LitElement, property } from 'lit-element';
2-
import { createElement, newActionEvent } from '../../../foundation.js';
2+
import { createElement, newActionEvent } from '../foundation.js';
33

44
let cbNum = 1;
55
let dsNum = 1;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { expect, fixture, html } from '@open-wc/testing';
22

3-
import '../../../../unit/mock-editor.js';
4-
import { MockEditor } from '../../../../unit/mock-editor.js';
5-
import '../../../../../src/editors/substation/autogen-substation/autogen-substation.js';
6-
import CompasAutogenerateSubstation from '../../../../../src/editors/substation/autogen-substation/autogen-substation.js';
3+
import '../../unit/mock-editor.js';
4+
import { MockEditor } from '../../unit/mock-editor.js';
5+
import '../../../src/compas-editors/autogen-substation.js';
6+
import CompasAutogenerateSubstation from '../../../src/compas-editors/autogen-substation.js';
77

88
describe('autogen-substation-integration', () => {
99
if (customElements.get('') === undefined)

web-test-runner.config.mjs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,27 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
1111
/** filter browser logs
1212
* Plugins have a fix URL and do not fit to the file structure in test environment.
1313
* Creating open-scd in the tests leads to error in the browser log - we had to disable the browser log
14-
*/
14+
*/
1515
browserLogs: false,
1616

1717
/** specify groups for unit and integrations tests
1818
* hint: no --group definition runs all groups
19-
*/
19+
*/
2020
groups: [
2121
{
2222
name: 'unit',
23-
files: 'test/unit/**/*.test.ts',
23+
files: [
24+
'test/unit/compas/*.test.ts',
25+
'test/unit/compas-services/*.test.ts',
26+
'test/unit/compas-wizards/*.test.ts',
27+
],
2428
},
2529
{
2630
name: 'integration',
27-
files: 'test/integration/**/*.test.ts',
31+
files: [
32+
'test/integration/compas/*.test.ts',
33+
'test/integration/compas-editors/*.test.ts',
34+
],
2835
},
2936
],
3037

0 commit comments

Comments
 (0)