diff --git a/npm/package.json b/npm/package.json index 43bb4a6982..694e63385f 100644 --- a/npm/package.json +++ b/npm/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@electron/get": "^1.0.1", - "@types/node": "^10.12.18", + "@types/node": "^12.0.12", "extract-zip": "^1.0.3" }, "engines": { diff --git a/spec-main/types-spec.ts b/spec-main/types-spec.ts new file mode 100644 index 0000000000..b0de8df6f1 --- /dev/null +++ b/spec-main/types-spec.ts @@ -0,0 +1,10 @@ +import { expect } from 'chai' + +describe('bundled @types/node', () => { + it('should match the major version of bundled node', () => { + expect(require('../npm/package.json').dependencies).to.have.property('@types/node') + const range = require('../npm/package.json').dependencies['@types/node'] + expect(range).to.match(/^\^.+/, 'should allow any type dep in a major range') + expect(range.slice(1).split('.')[0]).to.equal(process.versions.node.split('.')[0]) + }) +})