-
Notifications
You must be signed in to change notification settings - Fork 439
Expand file tree
/
Copy pathintegration.js
More file actions
27 lines (24 loc) · 909 Bytes
/
integration.js
File metadata and controls
27 lines (24 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { importMapsPlugin } from '@web/dev-server-import-maps';
import * as options from '../helpers/options.js';
import createConfig from './base.js';
import testPlugin from './plugins/serve-integration.js';
const SHADOW_MODE = options.SHADOW_MODE_OVERRIDE ?? 'synthetic';
const baseConfig = createConfig({
...options,
NATIVE_SHADOW: SHADOW_MODE === 'native' || options.FORCE_NATIVE_SHADOW_MODE_FOR_TEST,
});
/** @type {import("@web/test-runner").TestRunnerConfig} */
export default {
...baseConfig,
files: [
'test/**/*.spec.js',
// Make John fix this after his PR is merged
'!test/template-expressions/errors/index.spec.js',
'!test/template-expressions/smoke-test/index.spec.js',
],
plugins: [
...baseConfig.plugins,
importMapsPlugin({ inject: { importMap: { imports: { lwc: './mocks/lwc.js' } } } }),
testPlugin,
],
};