Skip to content

Commit

Permalink
Migrate tests for AddToCart button to Vite (#1899)
Browse files Browse the repository at this point in the history
* Migrate tests for AddToCart button to Vite

In replacing the old providers, this is one way of doing it now with RTL. Not sure if this is better or not, but it does seem more clear to me?

* update vitest

* toBeDisabled()

* Simplify the rendering

Really, there's no need to add a level of abstraction when we can just do it directly.
  • Loading branch information
frehner authored Jul 26, 2022
1 parent 15da36d commit a89ce2b
Show file tree
Hide file tree
Showing 6 changed files with 364 additions and 265 deletions.
5 changes: 3 additions & 2 deletions packages/hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"@rollup/plugin-graphql": "^1.0.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.3.0",
"@types/body-parser": "^1.19.2",
"@types/connect": "^3.4.34",
"@types/graphql": "^14.5.0",
Expand All @@ -104,13 +105,13 @@
"babel-loader": "^8.2.2",
"cpy-cli": "^3.1.0",
"eslint-plugin-import": "^2.26.0",
"happy-dom": "^6.0.3",
"happy-dom": "^6.0.4",
"mkdirp": "^1.0.4",
"npm-run-all": "^4.1.5",
"postcss": "^8",
"raw-loader": "^4.0.2",
"rimraf": "^3.0.2",
"vitest": "^0.18.0"
"vitest": "^0.19.1"
},
"peerDependencies": {
"body-parser": "^1.20.0",
Expand Down

This file was deleted.

Loading

0 comments on commit a89ce2b

Please sign in to comment.