Skip to content

Commit

Permalink
Configure test building
Browse files Browse the repository at this point in the history
  • Loading branch information
augustobmoura committed Jan 16, 2024
1 parent 8d91d6d commit 3c9e61c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/base/Page/src/SidebarItem/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as titleCaseModule from 'ap-style-title-case'
import { renderHook } from '@testing-library/react-hooks'
import { Candidates16 } from '@toptal/picasso-icons'

import PageSidebar from '../PageSidebar'
import { PageSidebar } from '../PageSidebar'
import type { Props } from './types'
import {
SubMenuContextProvider,
Expand Down
3 changes: 3 additions & 0 deletions packages/base/Test-Utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"**/styles.ts",
"**/styles.js"
],
"dependencies": {
"@toptal/picasso-shared": "13.1.2"
},
"peerDependencies": {
"@toptal/picasso-provider": "3.4.2",
"react": ">=16.12.0 < 19.0.0"
Expand Down
5 changes: 4 additions & 1 deletion packages/base/Test-Utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "outDir": "dist" },
"include": ["src"],
"references": [{ "path": "../../picasso-provider" }]
"references": [
{ "path": "../../picasso-provider" },
{ "path": "../../shared" }
]
}
10 changes: 10 additions & 0 deletions tsconfig.jest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"types": ["jest", "node", "@testing-library/jest-dom"]
},
"include": ["**/test.tsx", "**/*.test.tsx", "**/test.ts", "**/*.test.ts"],
"exclude": ["packages/picasso-*", "packages/topkit-*", "cypress"],
"references": [{ "path": "./tsconfig.pkg-srcs.json" }]
}
7 changes: 7 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.pkg-srcs.json" },
{ "path": "./tsconfig.jest.json" }
]
}
3 changes: 3 additions & 0 deletions tsconfig.all.json → tsconfig.pkg-srcs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"files": [],
"compilerOptions": {
"composite": true
},
"references": [
{ "path": "packages/picasso" },
{ "path": "packages/picasso-provider" },
Expand Down

0 comments on commit 3c9e61c

Please sign in to comment.