Skip to content

Commit

Permalink
feat: add type check to detect type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Nov 2, 2023
1 parent 1b8fae7 commit 462ac44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
working-directory: packages/design-system
run: npm run build

- name: Type check
run: tsc --noEmit

- name: ESLint
run: npm run lint:eslint

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@
"storybook": "concurrently 'storybook dev -p 6006 && open \"http://localhost:6006\"' 'cd packages/design-system && npm run storybook'",
"build-storybook": "storybook build",
"test:storybook": "test-storybook",
"test:storybook-all": "concurrently 'test-storybook' 'cd packages/design-system && npm run test:storybook'"
"test:storybook-all": "concurrently 'test-storybook' 'cd packages/design-system && npm run test:storybook'",
"typecheck": "tsc --noEmit"
},
"pre-commit": [
"typecheck",
"lint:fix",
"git:add",
"test:unit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('DownloadFilesButton', () => {
const datasetWithDownloadFilesPermission = DatasetMother.create({
permissions: DatasetPermissionsMother.createWithFilesDownloadAllowed()
})
const files = FileMother.createMany(2)
const files = FileMother.createMany(2, { tabularData: undefined })
cy.mountAuthenticated(
withDataset(
<DownloadFilesButton files={files} fileSelection={{}} />,
Expand Down

0 comments on commit 462ac44

Please sign in to comment.