Skip to content

Commit 912a18b

Browse files
committed
test stash
1 parent 7b0ead0 commit 912a18b

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

jest.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default {
55
'packages/core/src/**/*.{js,jsx,ts,tsx}',
66
'packages/iife/src/**/*.{js,jsx,ts,tsx}',
77
'packages/react/src/**/*.{js,jsx,ts,tsx}',
8+
'scripts/**/*.{js,jsx,ts,tsx}',
89
],
910
coverageDirectory: 'coverage',
1011
coverageReporters: ['text', 'lcov', 'text-summary'],

scripts/test/validateBuild.test.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { ExpectedBuildOutput } from '../validateBuild'
2+
3+
describe('scripts/validateBuild.ts', () => {
4+
const mockExpectedBuildOutput: ExpectedBuildOutput = {
5+
buildDir: 'exampleDist/',
6+
files: [
7+
'moduleA.js',
8+
'moduleA.mjs',
9+
'moduleB.js',
10+
'moduleB.mjs',
11+
],
12+
clientOnlyModules: [
13+
'moduleB.js',
14+
'moduleB.mjs',
15+
],
16+
}
17+
18+
afterEach(() => {
19+
jest.clearAllMocks()
20+
})
21+
22+
test('', () => {
23+
fail()
24+
})
25+
})

0 commit comments

Comments
 (0)