Skip to content

test: add msw tests#428

Merged
kanadgupta merged 2 commits intoesm-and-cjsfrom
add-msw-tests
Sep 27, 2023
Merged

test: add msw tests#428
kanadgupta merged 2 commits intoesm-and-cjsfrom
add-msw-tests

Conversation

@kanadgupta
Copy link
Copy Markdown
Contributor

@kanadgupta kanadgupta commented Sep 27, 2023

🧰 Changes

Discovered in #266 that we used to test against multiple mocking libraries, so this PR adds msw as one of them.

This also bumps @vitest/browser to the latest and re-adds webdriverio since that's required for the browser tests.

🧬 QA & Testing

Do tests pass?

@kanadgupta kanadgupta added the enhancement New feature or request label Sep 27, 2023
@kanadgupta kanadgupta marked this pull request as ready for review September 27, 2023 00:02
@kanadgupta kanadgupta merged commit eff8b6b into esm-and-cjs Sep 27, 2023
@kanadgupta kanadgupta deleted the add-msw-tests branch September 27, 2023 00:03
kanadgupta added a commit that referenced this pull request Sep 27, 2023
* feat: enable TS strict mode

* feat: exports for ESM and CJS

* fix: don't lint before tests

* fix: try splitting out types from default export

* chore: more tsconfig refreshes

* fix: this was the goddamn issue!!!!

* feat: migrate package to ESM, everything works 🥹

* chore: lint fixes

* chore(deps): remove unused dep

* chore(deps): bump a bunch

* ci: add pretest script

* revert: don't lint in tests

* chore: run prettier on everything

* ci: small refactor

* fix: bump target down

Co-Authored-By: Ilias Tsangaris <[email protected]>

* refactor: move type-checks into function itself

* revert: build this repo in CJS instead

that way we can use the conditional require syntax!

* chore: clean up eslint config

* chore: bump a few more deps

* chore: bring back this rule

* chore: test type cleanup

* chore: silence TS error

* fix: whoops remove the write flag

* test: add `msw` tests (#428)

* chore(deps): bump @vitest/browser to latest

* test: add MSW tests

* chore: rename test

(server) implies the existence of (client), which isn't a thing 😔

* refactor: remove readable-stream polyfill (#429)

* chore: add `files` array

* chore: ope clean up an unused type

* Update README.md

Co-authored-by: Dom Harrington <[email protected]>

* chore: add webpack thingy

* fix: edit tsconfig.json

see here: https://www.totaltypescript.com/tsconfig-cheat-sheet#not-transpiling-with-typescript

* chore: bring back prebuild script

... because i don't trust tsup lol

---------

Co-authored-by: Ilias Tsangaris <[email protected]>
Co-authored-by: Dom Harrington <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant