mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 19:16:10 +00:00
Ensure package versions are exact (#824)
This commit is contained in:
parent
c13610eeba
commit
7097a44f32
23
spec/package.json.spec.ts
Normal file
23
spec/package.json.spec.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import packageJSON from '../package.json';
|
||||||
|
|
||||||
|
// from https://docs.npmjs.com/files/package.json#dependencies
|
||||||
|
const nonExactPrefixes = ['~', '^', '>', '>=', '<', '<='];
|
||||||
|
|
||||||
|
describe('package.json', () => {
|
||||||
|
it('dependencies should not contain any non-exact versions', () => {
|
||||||
|
const deps = Object.values(packageJSON.dependencies);
|
||||||
|
deps.forEach(depVersion => {
|
||||||
|
nonExactPrefixes.forEach(badPrefix => {
|
||||||
|
expect(depVersion.includes(badPrefix)).toBeFalsy();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
it('devDependencies should not contain any non-exact versions', () => {
|
||||||
|
const deps = Object.values(packageJSON.devDependencies);
|
||||||
|
deps.forEach(depVersion => {
|
||||||
|
nonExactPrefixes.forEach(badPrefix => {
|
||||||
|
expect(depVersion.includes(badPrefix)).toBeFalsy();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user