Skip to content

Commit

Permalink
add a test, but it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Nov 23, 2024
1 parent 9d30bf0 commit b8800f6
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/specs/run/workspaces/package_json_wildcards/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"tempDir": true,
"steps": [
{
"args": "install",
"output": ""
},
{ "args": "run ./packages/foo/mod.js", "output": "main.out" }
]
}
3 changes: 3 additions & 0 deletions tests/specs/run/workspaces/package_json_wildcards/main.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bar
buzz
fizz
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"workspaces": [
"./packages/bar",
"./packages/buzz",
"./packages/fizz",
"./packages/foo"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function foo() {
return "foo";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@foo/bar",
"version": "0.0.0",
"main": "./main.js",
"type": "module"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function buzz() {
return "buzz";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@foo/buzz",
"version": "0.0.0",
"main": "./main.js",
"type": "module"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function fizz() {
return "fizz";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@foo/fizz",
"version": "0.0.0",
"main": "./main.js",
"type": "module"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { bar } from "@foo/bar";
import { buzz } from "@foo/buzz";
import { fizz } from "@foo/fizz";

console.log(bar());
console.log(buzz());
console.log(fizz());
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@foo/foo",
"version": "0.0.0",
"main": "main.js",
"dependencies": {
"@foo/bar": "workspace:*",
"@foo/buzz": "workspace:^",
"@foo/fizz": "workspace:~"
}
}

0 comments on commit b8800f6

Please sign in to comment.