Last active
May 22, 2019 21:07
-
-
Save sukima/73a9cd328d038e9c81ee8dee21e7b499 to your computer and use it in GitHub Desktop.
Failing testdouble TypeScript issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/node_modules | |
test.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "testdouble-issue", | |
"requires": true, | |
"lockfileVersion": 1, | |
"dependencies": { | |
"is-plain-obj": { | |
"version": "1.1.0", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/is-plain-obj/-/is-plain-obj-1.1.0.tgz", | |
"integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", | |
"dev": true | |
}, | |
"is-regexp": { | |
"version": "1.0.0", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/is-regexp/-/is-regexp-1.0.0.tgz", | |
"integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=", | |
"dev": true | |
}, | |
"lodash": { | |
"version": "4.17.11", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/lodash/-/lodash-4.17.11.tgz", | |
"integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", | |
"dev": true | |
}, | |
"path-parse": { | |
"version": "1.0.6", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/path-parse/-/path-parse-1.0.6.tgz", | |
"integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", | |
"dev": true | |
}, | |
"quibble": { | |
"version": "0.5.5", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/quibble/-/quibble-0.5.5.tgz", | |
"integrity": "sha512-cIePu3BtGlaTW1bjFgBcLT6QMxD8PtnZDCmPJUzO+RepIz8GuXsmZIEPGFjlPxzG9zfIj4nNLPxBDlUbvr9ESg==", | |
"dev": true, | |
"requires": { | |
"lodash": "^4.17.2", | |
"resolve": "^1.7.1" | |
} | |
}, | |
"resolve": { | |
"version": "1.11.0", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/resolve/-/resolve-1.11.0.tgz", | |
"integrity": "sha512-WL2pBDjqT6pGUNSUzMw00o4T7If+z4H2x3Gz893WoUQ5KW8Vr9txp00ykiP16VBaZF5+j/OcXJHZ9+PCvdiDKw==", | |
"dev": true, | |
"requires": { | |
"path-parse": "^1.0.6" | |
} | |
}, | |
"stringify-object-es5": { | |
"version": "2.5.0", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/stringify-object-es5/-/stringify-object-es5-2.5.0.tgz", | |
"integrity": "sha1-BXw8mpChJzObudFwSikLt70KHsU=", | |
"dev": true, | |
"requires": { | |
"is-plain-obj": "^1.0.0", | |
"is-regexp": "^1.0.0" | |
} | |
}, | |
"testdouble": { | |
"version": "3.11.0", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/testdouble/-/testdouble-3.11.0.tgz", | |
"integrity": "sha512-hmF04fDUiTHy8yVQx6mucpOeyH5qElb3UtMos4xWZtJR2MsS/nzLEN+5wQ4QiGS4TV1X32eMSzLgh53uKg9ufA==", | |
"dev": true, | |
"requires": { | |
"lodash": "^4.17.11", | |
"quibble": "^0.5.5", | |
"stringify-object-es5": "^2.5.0", | |
"theredoc": "^1.0.0" | |
} | |
}, | |
"theredoc": { | |
"version": "1.0.0", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/theredoc/-/theredoc-1.0.0.tgz", | |
"integrity": "sha512-KU3SA3TjRRM932jpNfD3u4Ec3bSvedyo5ITPI7zgWYnKep7BwQQaxlhI9qbO+lKJoRnoAbEVfMcAHRuKVYikDA==", | |
"dev": true | |
}, | |
"typescript": { | |
"version": "3.4.5", | |
"resolved": "https://npm.devtest.eyrie.cloud:4873/typescript/-/typescript-3.4.5.tgz", | |
"integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==", | |
"dev": true | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "testdouble-issue", | |
"private": true, | |
"scripts": { | |
"test": "tsc ./test.ts" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "https://gist.github.com/73a9cd328d038e9c81ee8dee21e7b499.git" | |
}, | |
"author": "Devin Weaver <suki@tritarget.org> (@sukima)", | |
"license": "MIT", | |
"bugs": { | |
"url": "https://gist.github.com/73a9cd328d038e9c81ee8dee21e7b499" | |
}, | |
"homepage": "https://gist.github.com/73a9cd328d038e9c81ee8dee21e7b499", | |
"devDependencies": { | |
"testdouble": "^3.11.0", | |
"typescript": "^3.4.5" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as td from 'testdouble'; | |
td.matchers.contains('a', 'b', 'c'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"esModuleInterop": true, | |
"target": "es6", | |
"moduleResolution": "node", | |
"sourceMap": true, | |
"outDir": "dist" | |
}, | |
"lib": ["es2015"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment