Skip to content

Commit

Permalink
deps(uiMapComponents): RN-1417: Update storybook version PART 3 (#5880)
Browse files Browse the repository at this point in the history
* map components

* Fix tests
  • Loading branch information
alexd-bes authored Sep 6, 2024
1 parent 44c2391 commit 0801096
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 332 deletions.
34 changes: 0 additions & 34 deletions packages/ui-map-components/.storybook/AppProviders.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/ui-map-components/.storybook/awsModuleMock.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/ui-map-components/.storybook/main.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/ui-map-components/.storybook/moduleMock.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/ui-map-components/.storybook/preview-head.html

This file was deleted.

23 changes: 0 additions & 23 deletions packages/ui-map-components/.storybook/preview.js

This file was deleted.

54 changes: 0 additions & 54 deletions packages/ui-map-components/.storybook/webpack.config.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Tupaia
* Copyright (c) 2017 - 2023 Beyond Essential Systems Pty Ltd
* Copyright (c) 2017 - 2020 Beyond Essential Systems Pty Ltd
*/

const isTest = process.env.NODE_ENV === 'test';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-map-components/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
},
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
'^.+\\.js$': ['babel-jest', { configFile: './babel.test.js' }],
},
testTimeout: 30 * 1000, // 30 seconds. Needed for CI as some test take a while if CPU has high load
};
9 changes: 4 additions & 5 deletions packages/ui-map-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"build-dev": "npm run build",
"lint": "yarn package:lint:js",
"lint:fix": "yarn lint --fix",
"storybook": "start-storybook -s public -p 6006",
"test": "yarn package:test --env=jsdom",
"test:coverage": "yarn test --coverage",
"test:watch": "yarn test --watch"
"test:watch": "yarn test --watch",
"start-storybook": "yarn package:storybook:start",
"build-storybook": "yarn package:storybook:build"
},
"dependencies": {
"@material-ui/core": "^4.9.8",
Expand All @@ -40,11 +41,9 @@
"devDependencies": {
"@material-ui/styles": "^4.9.10",
"@mui/types": "^7.2.4",
"@storybook/react": "^6.3.9",
"@types/jest": "^29.5.1",
"@types/leaflet": "^1.7.1",
"@types/react-dom": "^16.9.18",
"@types/styled-components": "^5.1.26",
"react-docgen-typescript-plugin": "^1.0.5"
"@types/styled-components": "^5.1.26"
}
}
36 changes: 0 additions & 36 deletions packages/ui-map-components/stories/theme/colors.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/ui-map-components/stories/theme/darkTheme.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/ui-map-components/stories/theme/index.js

This file was deleted.

125 changes: 0 additions & 125 deletions packages/ui-map-components/stories/theme/lightTheme.js

This file was deleted.

4 changes: 3 additions & 1 deletion packages/ui-map-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"include": [
"src/**/*",
"jest.config.ts",
"helpers/**/*"
"helpers/**/*",
"stories/**/*",
".storybook"
]
}
Loading

0 comments on commit 0801096

Please sign in to comment.