Skip to content

Commit

Permalink
Fix react dependencies to improve test reliability (#3673)
Browse files Browse the repository at this point in the history
* Fix local react tests by unifying versions

* Add missing dependencies to react tests

* Add changeset

* Fix lockfile

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
  • Loading branch information
hippotastic and matthewp authored Jun 22, 2022
1 parent ef6282d commit ba5ad78
Show file tree
Hide file tree
Showing 14 changed files with 1,245 additions and 1,203 deletions.
8 changes: 8 additions & 0 deletions .changeset/tricky-items-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@example/docs': patch
'astro': patch
'@astrojs/deno': patch
'@astrojs/netlify': patch
---

Fix react dependencies to improve test reliability
4 changes: 2 additions & 2 deletions examples/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@docsearch/react": "^3.1.0",
"@types/react": "^17.0.45",
"preact": "^10.7.3",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.1.0",
"react-dom": "^18.1.0"
},
"devDependencies": {
"@astrojs/preact": "^0.1.3",
Expand Down
4 changes: 3 additions & 1 deletion packages/astro/test/fixtures/0-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"@astrojs/react": "workspace:*",
"@astrojs/svelte": "workspace:*",
"@astrojs/vue": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/astro/test/fixtures/astro-attrs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"dependencies": {
"@astrojs/react": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/astro/test/fixtures/astro-client-only/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"dependencies": {
"@astrojs/svelte": "workspace:*",
"@astrojs/react": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/astro/test/fixtures/astro-dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"dependencies": {
"@astrojs/react": "workspace:*",
"@astrojs/svelte": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/astro/test/fixtures/astro-partial-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"dependencies": {
"@astrojs/react": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@adobe/react-spectrum": "^3.18.0",
"@astrojs/react": "workspace:*",
"astro": "workspace:*",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/astro/test/fixtures/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"@astrojs/solid-js": "workspace:*",
"@astrojs/svelte": "workspace:*",
"@astrojs/vue": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/astro/test/fixtures/slots-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"dependencies": {
"@astrojs/react": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"dependencies": {
"@astrojs/react": "workspace:*",
"@astrojs/preact": "workspace:*",
"astro": "workspace:*"
"astro": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/integrations/deno/test/fixtures/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"dependencies": {
"astro": "workspace:*",
"@astrojs/deno": "workspace:*",
"@astrojs/react": "workspace:*"
"@astrojs/react": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"dependencies": {
"astro": "workspace:*",
"@astrojs/react": "workspace:*",
"@astrojs/netlify": "workspace:*"
"@astrojs/netlify": "workspace:*",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
Loading

0 comments on commit ba5ad78

Please sign in to comment.