chore: fix cjs_with_deps test to use a temp dir (#27199)

It was creating a node_modules directory.
This commit is contained in:
David Sherret 2024-12-02 20:37:40 -05:00 committed by Bartek Iwańczuk
parent b86c68dbdd
commit a3a8cc4129
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
{
"tempDir": true,
"tests": {
"cjs_with_deps": {
"args": "run --allow-read --allow-env main.js",

View file

@ -3,7 +3,7 @@ type: JavaScript
dependencies: 14 unique
size: [WILDCARD]
file:///[WILDCARD]/cjs_with_deps/main.js ([WILDCARD])
file:///[WILDCARD]/main.js ([WILDCARD])
├─┬ npm:/chalk@4.1.2 ([WILDCARD])
│ ├─┬ npm:/ansi-styles@4.3.0 ([WILDCARD])
│ │ └─┬ npm:/color-convert@2.0.1 ([WILDCARD])