Skip to content

Commit 959229e

Browse files
committed
Update CLI snapshots
1 parent f508fd0 commit 959229e

File tree

7 files changed

+92
-88
lines changed

7 files changed

+92
-88
lines changed

packages/cli/test/snapshots/@[email protected]

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ $ attw @[email protected] -f table-flipped
66
77
@vitejs/plugin-react v3.1.0
88
9+
❓ The JavaScript appears to set both module.exports and module.exports.default for improved compatibility, but the types only reflect the latter (by using export default). This will cause TypeScript under the node16 module mode to think an extra .default property access is required, which will work at runtime but is not necessary. These types export = an object with a default property instead of using export default. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/MissingExportEquals.md
10+
911
🎭 Import resolved to a CommonJS type declaration file, but an ESM JavaScript file. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md
1012
1113
12-
┌────────────────────────┬───────────────────────────┬────────────────────────┬─────────┐
13-
│ │ node10 │ node16 (from CJS) │ node16 (from ESM) │ bundler │
14-
├────────────────────────┼───────────────────────────┼────────────────────────┼─────────┤
15-
│ "@vitejs/plugin-react" │ 🟢 │ 🟢 (CJS) │ 🎭 Masquerading as CJS │ 🟢 │
16-
└────────────────────────┴───────────────────────────┴────────────────────────┴─────────┘
14+
┌────────────────────────┬───────────────────────┬───────────────────────┬────────────────────────┬─────────┐
15+
│ │ node10 │ node16 (from CJS) │ node16 (from ESM) │ bundler │
16+
├────────────────────────┼───────────────────────┼───────────────────────┼────────────────────────┼─────────┤
17+
│ "@vitejs/plugin-react" │ ❓ Missing `export =` │ ❓ Missing `export =` │ 🎭 Masquerading as CJS │ 🟢 │
18+
└────────────────────────┴───────────────────────┴───────────────────────┴────────────────────────┴─────────┘
1719
1820
1921
```

packages/cli/test/snapshots/[email protected]

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ Build tools:
1111
- rollup@^2.44.0
1212
- @rollup/plugin-typescript@^10.0.1
1313
14-
No problems found 🌟
14+
❓ The JavaScript appears to set both module.exports and module.exports.default for improved compatibility, but the types only reflect the latter (by using export default). This will cause TypeScript under the node16 module mode to think an extra .default property access is required, which will work at runtime but is not necessary. These types export = an object with a default property instead of using export default. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/MissingExportEquals.md
1515
1616
17-
┌───────┬────────┬───────────────────┬────────────────────────────┐
18-
│ │ node10 │ node16 (from CJS) │ node16 (from ESM) │ bundler │
19-
├───────┼────────┼───────────────────┼────────────────────────────┤
20-
│ "ajv" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢
21-
└───────┴────────┴───────────────────┴────────────────────────────┘
17+
┌───────┬───────────────────────┬───────────────────────┬───────────────────────┬───────────────────────┐
18+
│ │ node10 │ node16 (from CJS) │ node16 (from ESM) │ bundler
19+
├───────┼───────────────────────┼───────────────────────┼───────────────────────┼───────────────────────┤
20+
│ "ajv" │ ❓ Missing `export =` │ ❓ Missing `export =` │ ❓ Missing `export =` │ ❓ Missing `export =`
21+
└───────┴───────────────────────┴───────────────────────┴───────────────────────┴───────────────────────┘
2222
2323
2424
```
2525

26-
Exit code: 0
26+
Exit code: 1

packages/cli/test/snapshots/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Build tools:
1010
- typescript@^4.8.4
1111
- rollup@^2.67.0
1212
13-
Wildcard subpaths cannot yet be analyzed by this tool. https://github.com/arethetypeswrong/arethetypeswrong.github.io/issues/40
13+
🃏 Wildcard subpaths cannot yet be analyzed by this tool. https://github.com/arethetypeswrong/arethetypeswrong.github.io/issues/40
1414
1515
💀 Import failed to resolve to type declarations or JavaScript files. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md
1616
@@ -24,7 +24,7 @@ Build tools:
2424
├─────────────────────────────────────────┼──────────────────────┼──────────────────────────────┼────────────────────┼────────────────────┤
2525
│ "axios" │ 🟢 │ 🟢 (CJS) │ 🟢 (ESM) │ 🟢 │
2626
├─────────────────────────────────────────┼──────────────────────┼──────────────────────────────┼────────────────────┼────────────────────┤
27-
│ "axios/unsafe/*" │ Unable to check │ Unable to check │ Unable to check │ Unable to check │
27+
│ "axios/unsafe/*" │ 🃏 Unable to check │ 🃏 Unable to check │ 🃏 Unable to check │ 🃏 Unable to check │
2828
├─────────────────────────────────────────┼──────────────────────┼──────────────────────────────┼────────────────────┼────────────────────┤
2929
│ "axios/unsafe/core/settle.js" │ 💀 Resolution failed │ ❌ No types │ ❌ No types │ ❌ No types │
3030
│ │ │ ⚠️ ESM (dynamic import only) │ │ │

0 commit comments

Comments
 (0)