Skip to content

Commit 2744988

Browse files
authored
test: fix unstable snap-test (#365)
1 parent baaece5 commit 2744988

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
22
entry: 'src/index.ts',
3-
format: ['esm', 'cjs'],
3+
format: ['cjs'],
44
};

packages/cli/snap-tests/command-lib-monorepo/snap.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
ℹ Using tsdown config: <cwd>/packages/hello/tsdown.config.ts
55
ℹ entry: src/index.ts
66
ℹ Build start
7-
ℹ [ESM] dist/index.mjs <variable> kB │ gzip: <variable> kB
8-
ℹ [ESM] 1 files, total: <variable> kB
9-
ℹ [CJS] dist/index.cjs <variable> kB │ gzip: <variable> kB
10-
ℹ [CJS] 1 files, total: <variable> kB
7+
ℹ dist/index.cjs <variable> kB │ gzip: <variable> kB
8+
ℹ 1 files, total: <variable> kB
119
✔ Build complete in <variable>ms
1210

1311

@@ -27,18 +25,15 @@ Task Details:
2725

2826
> ls packages/hello/dist # should have the library
2927
index.cjs
30-
index.mjs
3128

3229
> vite run hello#build # should hit cache
3330
~/packages/hello$ vite lib (✓ cache hit, replaying)
3431
ℹ tsdown v<semver> powered by rolldown v<semver>
3532
ℹ Using tsdown config: <cwd>/packages/hello/tsdown.config.ts
3633
ℹ entry: src/index.ts
3734
ℹ Build start
38-
ℹ [ESM] dist/index.mjs <variable> kB │ gzip: <variable> kB
39-
ℹ [ESM] 1 files, total: <variable> kB
40-
ℹ [CJS] dist/index.cjs <variable> kB │ gzip: <variable> kB
41-
ℹ [CJS] 1 files, total: <variable> kB
35+
ℹ dist/index.cjs <variable> kB │ gzip: <variable> kB
36+
ℹ 1 files, total: <variable> kB
4237
✔ Build complete in <variable>ms
4338

4439

0 commit comments

Comments
 (0)