Skip to content

Commit

Permalink
test: add tests for monorepo base path (#6406)
Browse files Browse the repository at this point in the history
* test: add tests for monorepo base path

* chore: add test:init script for monorepos

* fix conflict

---------

Co-authored-by: Sarah Etter <[email protected]>
Co-authored-by: lemusthelroy <[email protected]>
Co-authored-by: NikAiyer <[email protected]>
Co-authored-by: Karin Hendrikse <[email protected]>
Co-authored-by: Daniel Lew <[email protected]>
  • Loading branch information
6 people authored Feb 6, 2025
1 parent a7c2fab commit 05aed17
Show file tree
Hide file tree
Showing 13 changed files with 3,546 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"test:init:cli-help": "npm run start -- --help",
"test:init:eleventy-deps": "cd tests/integration/__fixtures__/eleventy-site && pnpm install --frozen-lockfile",
"test:init:hugo-deps": "npm ci --prefix tests/integration/__fixtures__/hugo-site --no-audit",
"test:init:monorepo-deps": "cd tests/integration/__fixtures__/monorepo && pnpm install --frozen-lockfile",
"test:init:next-deps": "npm ci --prefix tests/integration/__fixtures__/next-app-without-config --no-audit && npm ci --prefix tests/integration/__fixtures__/next-app --no-audit",
"test:dev:vitest": "vitest run tests/unit/ && vitest run tests/integration",
"test:ci:vitest:unit": "vitest run --coverage tests/unit/",
Expand Down
1 change: 1 addition & 0 deletions tests/integration/__fixtures__/monorepo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions tests/integration/__fixtures__/monorepo/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public-hoist-pattern[]=*
4 changes: 4 additions & 0 deletions tests/integration/__fixtures__/monorepo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "monorepo",
"version": "1.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>Hello world</h1>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build]
cmd = "hello world"
publish = "dist"

[[plugins]]
package = "./tools/build-plugin"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "app-1",
"version": "1.0.0"
}
Loading

1 comment on commit 05aed17

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,192
  • Package size: 306 MB
  • Number of ts-expect-error directives: 801

Please sign in to comment.