Skip to content

Commit ef05b45

Browse files
authored
chore(testing): export stubComponentCompilerMeta as mockComponentMeta (#6409)
* build: export stubComponentCompilerMeta * export as mockComponent * move from reexport to explicit import and export * rename mockComponent to mockComponentMeta * linting be happy * make prettier
1 parent 87074d1 commit ef05b45

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/testing/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export {
1818
mockBuildCtx,
1919
mockCompilerCtx,
2020
mockCompilerSystem,
21+
mockComponentMeta,
2122
mockConfig,
2223
mockDocument,
2324
mockLoadConfigInit,

src/testing/mocks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ import { BuildContext } from '../compiler/build/build-ctx';
99
import { Cache as CompilerCache } from '../compiler/cache';
1010
import { buildEvents } from '../compiler/events';
1111
import { createInMemoryFs } from '../compiler/sys/in-memory-fs';
12+
import { stubComponentCompilerMeta } from '../compiler/types/tests/ComponentCompilerMeta.stub';
1213
import { TestingLogger } from './testing-logger';
1314
import { createTestingSystem, TestingSystem } from './testing-sys';
1415

16+
export const mockComponentMeta = stubComponentCompilerMeta;
17+
1518
/**
1619
* Creates a mock instance of an internal, validated Stencil configuration object
1720
* the caller

0 commit comments

Comments
 (0)