Skip to content

Instantly share code, notes, and snippets.

@sibelius
Created March 5, 2022 10:55
Show Gist options
  • Save sibelius/fd6e797cc038787b81e12ac6c68cba45 to your computer and use it in GitHub Desktop.
Save sibelius/fd6e797cc038787b81e12ac6c68cba45 to your computer and use it in GitHub Desktop.
jest config multi project to test both server/api and frontend tests in a nextjs api
module.exports = {
projects: [
'<rootDir>/jest.frontend.config.js',
'<rootDir>/jest.server.config.js',
],
}
@sibelius
Copy link
Author

sibelius commented Nov 2, 2022

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