mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 10:41:56 +00:00
c9676cac62
* (Reapplied) Upgrade to Webpack 4 * remove yarn.lock from gitignore * add yarn.lock * custom hashing for css and client bundle filenames * add hash-files dep * update deps * add .wwp-cache to .gitignore * use latest git hash as filename hash * remove unused hash-files dep * update favicon plugin * remove yarn.lock
28 lines
879 B
TypeScript
28 lines
879 B
TypeScript
import packageJSON from '../package.json';
|
|
|
|
interface Dependencies {
|
|
[key: string]: string;
|
|
}
|
|
|
|
// 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 as 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 as Dependencies);
|
|
deps.forEach(depVersion => {
|
|
nonExactPrefixes.forEach(badPrefix => {
|
|
expect(depVersion.includes(badPrefix)).toBeFalsy();
|
|
});
|
|
});
|
|
});
|
|
});
|