Skip to content

Commit

Permalink
Address comments by Joel Denning
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Mosca committed Jul 1, 2023
1 parent 81e40cc commit dfa2079
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm run lint
- run: pnpm run test-jest
- run: pnpm run check-format
- run: pnpm run test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ dist

# jetbrain IDE files
/.idea

# VSCode IDE files
/.vscode
1 change: 0 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const config = {
testEnvironment: "jsdom",
resetMocks: true,
restoreMocks: true,
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
};

module.exports = config;
4 changes: 0 additions & 4 deletions jest.setup.js

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"scripts": {
"build": "pnpm run clean && cross-env NODE_ENV=production rollup -c",
"build:dev": "pnpm run clean && cross-env NODE_ENV=development rollup -c",
"check-format": "prettier --check src",
"clean": "rimraf dist",
"watch": "cross-env NODE_ENV=development rollup -c --watch",
"copy-test-files": "copyfiles test/**/* dist -f",
"test-jest": "jest",
"test-serve": "serve .",
"test-embed-serve": "serve . -l 3333",
"test": "concurrently pnpm:watch pnpm:copy-test-files pnpm:test-serve pnpm:test-embed-serve",
"serve": "serve .",
"embed-serve": "serve . -l 3333",
"test": "jest",
"lint": "eslint src",
"prepublishOnly": "pnpm run build",
"prepare": "husky install"
Expand Down
10 changes: 4 additions & 6 deletions src/ui/list/list.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,8 @@ export default class List extends Component {
defaultModules.sort(sorter);
nextOverriddenModules.sort(sorter);

const {
brokenMaps,
workingCurrentPageMaps,
workingNextPageMaps,
} = getExternalMaps();
const { brokenMaps, workingCurrentPageMaps, workingNextPageMaps } =
getExternalMaps();

return (
<div className="imo-list-container">
Expand Down Expand Up @@ -466,7 +463,8 @@ function toURL(urlStr) {

function getExternalMaps() {
const allExternalMaps = window.importMapOverrides.getExternalOverrides();
const allCurrentPageMaps = window.importMapOverrides.getCurrentPageExternalOverrides();
const allCurrentPageMaps =
window.importMapOverrides.getCurrentPageExternalOverrides();
const brokenMaps = [],
workingCurrentPageMaps = [],
workingNextPageMaps = [];
Expand Down

0 comments on commit dfa2079

Please sign in to comment.