insomnia/packages/insomnia-app/app/__tests__/package.test.js
Gregory Schier 549ce23ce8
Merge All Repositories into Monorepo for easier maintenance (#629)
* All projects into monorepo

* Update CI

* More CI updates

* Extracted a bunch of things into packages

* Publish

 - insomnia-plugin-base64@1.0.1
 - insomnia-plugin-default-headers@1.0.2
 - insomnia-plugin-file@1.0.1
 - insomnia-plugin-hash@1.0.1
 - insomnia-plugin-now@1.0.1
 - insomnia-plugin-request@1.0.1
 - insomnia-plugin-response@1.0.1
 - insomnia-plugin-uuid@1.0.1
 - insomnia-cookies@0.0.2
 - insomnia-importers@1.5.2
 - insomnia-prettify@0.0.3
 - insomnia-url@0.0.2
 - insomnia-xpath@0.0.2

* A bunch of small fixes

* Improved build script

* Fixed

* Merge dangling files

* Usability refactor

* Handle duplicate plugin names
2017-11-26 20:45:40 +00:00

25 lines
1008 B
JavaScript

import * as globalPackage from '../../package.json';
import {globalBeforeEach} from '../__jest__/before-each';
describe('package.json', () => {
beforeEach(globalBeforeEach);
it('all packed dependencies should exist', () => {
for (const name of globalPackage.packedDependencies) {
const version = globalPackage.dependencies[name];
expect(version).toBeDefined();
}
});
it('sticks graphql dependencies', () => {
/*
* This test is here to make sure no one updates these. If you want to update
* them, make sure that they both require the same version of graphql and to
* also dedup so there is only one version of graphql installed. If not, it
* causes problems with instanceof not matching the correct class. Also, if
* these are updated, be sure to test graphql linting and autocomplete.
*/
expect(globalPackage.dependencies['graphql']).toBe('^0.10.5');
expect(globalPackage.dependencies['codemirror-graphql']).toBe('^0.6.11');
});
});