Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test version equality #79

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
});
});
Loading