Skip to content

Instantly share code, notes, and snippets.

@MonteLogic
Last active November 19, 2024 01:11
Show Gist options
  • Save MonteLogic/f18adf78326c7f6c045cd7500c07dc03 to your computer and use it in GitHub Desktop.
Save MonteLogic/f18adf78326c7f6c045cd7500c07dc03 to your computer and use it in GitHub Desktop.
Testing using SQLite(Turso) and Next.js 13+

" I'll create a comprehensive test suite for the employee page functionality using Vitest, SQLite with Turso, and MSW (Mock Service Worker) for mocking API calls to Clerk.

"

Still don't know how the Turso database storage and retrieval works.

Documenting setting up my testing suite for my Next.js 13 project.

Ideally, we would have Vitest and Playwright to run the whole testing gamut.

So our vitest Next.js testing setup won't interfere with an already existing or soon to exist Playwright testing suite.

I think I'm going to start off small.

I am going to test a simple component and then build up to the current components which need to be tested.

Currently my setup

Currently my setup, the vitest test run with the playwright tests, I would like for these tests to be more organized.

@MonteLogic
Copy link
Author

Go by testing scenarios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment