Skip to content

Instantly share code, notes, and snippets.

@brandonroberts
Last active July 22, 2021 17:20
Show Gist options
  • Save brandonroberts/8577ef46b8d72d5b8789ce9e584d773e to your computer and use it in GitHub Desktop.
Save brandonroberts/8577ef46b8d72d5b8789ce9e584d773e to your computer and use it in GitHub Desktop.
Jest Config w/helper
+ const { getJestProjects } = require('@nrwl/jest');
+ module.exports = { projects: getJestProjects() };
- module.exports = {
- projects: [
- '<rootDir>/apps/products',
- '<rootDir>/apps/cart',
- '<rootDir>/libs/shared/product/ui',
- '<rootDir>/libs/products/home-page',
- '<rootDir>/libs/cart/cart-page',
- '<rootDir>/libs/shared/cart/state',
- '<rootDir>/libs/shared/product/state',
- '<rootDir>/libs/shared/header',
- '<rootDir>/libs/products/product-detail-page',
- ],
- projects: getJestProjects()
- };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment