mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00

* 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
97 lines
2.4 KiB
JSON
97 lines
2.4 KiB
JSON
{
|
|
"name": "apollo-server-core",
|
|
"version": "2.0.0",
|
|
"description": "Core engine for Apollo GraphQL server",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"compile": "tsc",
|
|
"coverage": "jest --coverage",
|
|
"prepublish": "npm run compile",
|
|
"test": "jest --verbose",
|
|
"watch": "tsc -w"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-core"
|
|
},
|
|
"keywords": [
|
|
"GraphQL",
|
|
"Apollo",
|
|
"Server",
|
|
"Javascript"
|
|
],
|
|
"author": "Jonas Helfer <jonas@helfer.email>",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/apollographql/apollo-server/issues"
|
|
},
|
|
"homepage": "https://github.com/apollographql/apollo-server#readme",
|
|
"engines": {
|
|
"node": ">=6"
|
|
},
|
|
"dependencies": {
|
|
"@types/ws": "^5.1.2",
|
|
"apollo-cache-control": "0.2.0",
|
|
"apollo-datasource": "0.1.0",
|
|
"apollo-engine-reporting": "0.0.0",
|
|
"apollo-server-caching": "0.1.0",
|
|
"apollo-server-env": "2.0.0",
|
|
"apollo-server-errors": "2.0.0",
|
|
"apollo-tracing": "0.2.0",
|
|
"apollo-upload-server": "^5.0.0",
|
|
"graphql-extensions": "0.1.0",
|
|
"graphql-subscriptions": "^0.5.8",
|
|
"graphql-tag": "^2.9.2",
|
|
"graphql-tools": "^3.0.4",
|
|
"hash.js": "^1.1.3",
|
|
"lodash": "^4.17.10",
|
|
"subscriptions-transport-ws": "^0.9.11",
|
|
"ws": "^5.2.0"
|
|
},
|
|
"peerDependencies": {
|
|
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/fibers": "0.0.30",
|
|
"@types/graphql": "0.13.3",
|
|
"@types/keyv": "3.0.1",
|
|
"@types/quick-lru": "1.1.0",
|
|
"apollo-fetch": "0.7.0",
|
|
"apollo-link": "1.2.2",
|
|
"apollo-link-http": "1.5.4",
|
|
"apollo-link-persisted-queries": "0.2.1",
|
|
"fibers": "2.0.2",
|
|
"js-sha256": "0.9.0",
|
|
"meteor-promise": "0.8.6",
|
|
"mock-req": "0.2.0"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"setupFiles": [
|
|
"<rootDir>/node_modules/apollo-server-env/dist/index.js"
|
|
],
|
|
"transform": {
|
|
"^.+\\.(ts|js)$": "ts-jest"
|
|
},
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"js",
|
|
"json"
|
|
],
|
|
"testRegex": "src/__tests__/.*$",
|
|
"testPathIgnorePatterns": [
|
|
"<rootDir>/node_modules/",
|
|
"<rootDir>/lib/",
|
|
"test-utils"
|
|
],
|
|
"globals": {
|
|
"ts-jest": {
|
|
"skipBabel": true
|
|
}
|
|
}
|
|
},
|
|
"typings": "dist/index.d.ts",
|
|
"typescript": {
|
|
"definition": "dist/index.d.ts"
|
|
}
|
|
}
|