Skip to content

Commit

Permalink
Housekeeping-remove-unused-kaio-test-scripts (#4021)
Browse files Browse the repository at this point in the history
* removed R16/17 test scripts

* remove stuff

* cleanup turbo

* add changeset

* remove unused github action

* remove renovate settings
  • Loading branch information
gyfchong authored Sep 5, 2023
1 parent 9c99b44 commit b34932e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 50 deletions.
2 changes: 2 additions & 0 deletions .changeset/bright-paws-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
15 changes: 0 additions & 15 deletions .github/workflows/component-library.yml

This file was deleted.

22 changes: 0 additions & 22 deletions packages/components/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,3 @@ const jestConfig: JestConfigWithTsJest = {
export default jestConfig

process.env.TZ = "UTC"

if (process.env.USE_REACT_16 === "true") {
console.log("=== React 16 tests ===")
module.exports.cacheDirectory = ".cache/jest-cache-react-16"
module.exports.moduleNameMapper = {
...module.exports.moduleNameMapper,
"^react-dom((\\/.*)?)$": "react-dom-16$1",
"^react((\\/.*)?)$": "react-16$1",
"^@testing-library/react((\\/.*)?)$": "@testing-library/react-12$1",
"^react-test-renderer((\\/.*)?)$": "react-test-renderer-17$1",
}
} else if (process.env.USE_REACT_17 === "true") {
console.log("=== React 17 tests ===")
module.exports.cacheDirectory = ".cache/jest-cache-react-17"
module.exports.moduleNameMapper = {
...module.exports.moduleNameMapper,
"^react-dom((\\/.*)?)$": "react-dom-17$1",
"^react((\\/.*)?)$": "react-17$1",
"^@testing-library/react((\\/.*)?)$": "@testing-library/react-12$1",
"^react-test-renderer((\\/.*)?)$": "react-test-renderer-17$1",
}
}
2 changes: 0 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
"dist:postcss": "postcss dist/raw-styles.css --output dist/styles.css",
"postBuild": "yarn dist:copy-tailwind && yarn dist:combine-styles && yarn dist:postcss",
"test:ci": "yarn test --ci",
"ci:test:react-16": "USE_REACT_16=true yarn test:ci",
"ci:test:react-17": "USE_REACT_17=true yarn test:ci",
"update-icons": "./src/Icons/bin/update-icons.sh"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
// We can't always stick to latest due to infra and compatibility with other plugins
"node",
"typescript",
// We include older versions of React things in order to test against React 16 & 17
"react-16",
"react-17",
"react-dom-16",
"react-dom-17",
"@testing-library/react-12",
"react-test-renderer-17",
// the 8.4.19 -> 8.4.21 patch causes typescript issues
"postcss"
],
Expand Down
8 changes: 4 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
},
"build": {
"dependsOn": ["^build"],
"outputs": ["**/*.d.ts", "**/*.js", "**/*.map"],
"inputs": ["packages/**", "draft-packages/**"]
"inputs": ["packages/**"],
"outputs": ["dist/**"]
},
"prepublishOnly": {
"dependsOn": ["^prepublishOnly"],
"outputs": ["**/*.d.ts", "**/*.js", "**/*.map"],
"inputs": ["packages/**", "draft-packages/**"]
"inputs": ["packages/**"],
"outputs": ["dist/**"]
},
"clean": {
"cache": false
Expand Down

0 comments on commit b34932e

Please sign in to comment.