Skip to content

Commit

Permalink
Add test for version equality
Browse files Browse the repository at this point in the history
  • Loading branch information
penge committed Apr 27, 2024
1 parent 0d91b82 commit ee1f8ef
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/manifest-chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Block Site",
"description": "Blocks access to distracting websites to improve your productivity.",
"version": "8.2",
"version": "8.2.0",
"icons": {
"32": "icon_32.png",
"128": "icon_128.png"
Expand Down
2 changes: 1 addition & 1 deletion public/manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Block Site",
"description": "Blocks access to distracting websites to improve your productivity.",
"version": "8.2",
"version": "8.2.0",
"icons": {
"32": "icon_32.png",
"128": "icon_128.png"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"target": "ES2022",
"moduleResolution": "node",
"strict": true,
"esModuleInterop": true
"esModuleInterop": true,
"resolveJsonModule": true
}
}
17 changes: 17 additions & 0 deletions version.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import packageJson from "./package.json";
import packageLockJson from "./package-lock.json";

import manifestChromeJson from "./public/manifest-chrome.json";
import manifestFirefoxJson from "./public/manifest-firefox.json";

test("version equality", () => {
const { version } = packageJson;

[
packageLockJson.version,
manifestChromeJson.version,
manifestFirefoxJson.version,
].forEach((aVersion) => {
expect(aVersion).toBe(version);
});
});

0 comments on commit ee1f8ef

Please sign in to comment.