apollo-server/package.json

57 lines
1.4 KiB
JSON
Raw Normal View History

{
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/apollographql/apollo-server.git"
},
"scripts": {
2018-07-18 08:43:47 -07:00
"compile": "lerna run compile",
"lint": "prettier-check --ignore-path .gitignore \"{docs/{,source/**},.,packages/**,test}/{*.js,*.ts}\"",
"lint-fix": "prettier --write --ignore-path .gitignore \"{docs/{,source/**},.,packages/**,test}/{*.js,*.ts}\"",
"prebootstrap": "npm install",
"postinstall": "lerna bootstrap",
"pretest": "npm run compile",
"test": "npm run testonly",
"posttest": "npm run lint",
"testonly": "jest --verbose",
"circle": "npm run testonly && npm run lint",
"release": "lerna publish --exact",
"precommit": "lint-staged"
},
"lint-staged": {
"*.ts": [
"prettier --write",
"git add"
],
"*.js": [
"prettier --write",
"git add"
]
},
"engines": {
2018-06-13 14:56:09 -07:00
"node": ">=6"
},
"devDependencies": {
"@types/graphql": "0.13.4",
Mocha to Jest Test Conversion (#1453) * import jest * remove mocha, chai, sinon * fix JSON parsing for package.json * replace import mocha, chai, sinon with jest * add jest as test npm script * remove dependency on mocha types * errors: remove unused jest tests * move tests to __tests__ folders * add jest types to root tsconfig * fix tsconfig include excludes * .to.equal -> toEqual * .true -> .toBe(true) * .to.deep.equal -> .toEqual * .to.exist -> .toBeDefined() * .to.contain -> .toMatch * .to.match -> .toMatch * to.be.undefined -> .toBeUndefined() * not.toBeDefined -> .toBeUndefined * bring integration test up to date with past changes * remove message from expect * .null -> .toBe(null) * expect.fail -> done.fail * callsFake -> jest.fn * mocha mock calls -> jest * .not.to.exist -> .toBeUndefined() * callCount -> mocks.calls.length * returns -> jest.fn() * .equals -> .toEqual * fix relative imports * remove string in expects and place as comment * remove Fibers from runQuery * restore -> mockRestore * before -> beforeAll * after -> afterAll * fix async_hooks test and Promise await * remove jest from testsuite package json * remove unnecessary apollo-server-env setup * add start of cloudflare tests * this.timeout -> timeout argument * express: fix relative require * import gql tag properly * .to.throw -> .toThrow * .to.be.instanceof -> .toBeInstanceOf * remove console log check test * done(Error) -> done.fail(Error) * done -> done.fail * change port numbers, since jest runs in parallel * fix toBeUndefined for null checks * make engine port unique in testsuite * make data source rest endpoint port unique * add coverage scripts * travis npm script -> cricle script * make engine port random * change ports to not conflict across integrations * increase node version for apollo-server-hapi * add node versioning to prevent hapi tests from running * move jest dependencies to the root package.json * make hapi port unique * fix port reference in hapi tests
2018-07-31 15:40:03 -07:00
"@types/jest": "23.3.1",
"@types/node": "10.5.7",
2018-07-16 09:56:51 -07:00
"graphql": "0.13.2",
"husky": "0.14.3",
2018-08-10 18:55:44 +02:00
"jest": "23.5.0",
"jest-matcher-utils": "23.5.0",
2018-08-10 16:16:59 +02:00
"lerna": "3.0.1",
2018-07-16 09:56:51 -07:00
"lint-staged": "7.2.0",
"prettier": "1.14.2",
2018-07-16 09:56:51 -07:00
"prettier-check": "2.0.0",
"supertest": "3.1.0",
"ts-jest": "23.1.3",
2018-07-16 09:56:51 -07:00
"typescript": "2.9.2"
},
"jest": {
"projects": [
"<rootDir>/packages/*"
]
}
}