We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For this JS file (which is generated from TypeScript) I'm seeing the error below:
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); const tap = require("tap"); tap.test('foo', (t) => __awaiter(this, void 0, void 0, function* () { yield t.rejects(() => { return new Promise((resolve, reject) => { reject('foo'); }); }); }));
Here's the error:
$ tap test.js test.js ............................................... 0/2 foo not ok Cannot set property 'at' of undefined stack: | Object.<anonymous> (test.js:14:13) Generator.next (<anonymous>) test.js:7:71 __awaiter (test.js:3:12) Test.tap.test (test.js:13:24) type: TypeError test: foo not ok undefined error: foo stack: | process.emit (node_modules/source-map-support/source-map-support.js:430:21) processEmit [as emit] (node_modules/signal-exit/index.js:155:32) total ................................................. 0/2 0 passing (395.964ms) 2 failing
It's generated from this TypeScript file (if that matters):
import * as tap from 'tap'; tap.test('foo', async t => { await t.rejects(() => { return new Promise((resolve, reject) => { reject('foo'); }) }) })
Versions:
$ tap --version 10.7.0 $ node --version v7.4.0
Is this a bug in tap or a bug in TypeScript's await/async-to-generators code?
The text was updated successfully, but these errors were encountered:
I have the same for a simple t.rejects(prom, {}, 'a'); in a test function, that makes rejects unusable.
t.rejects(prom, {}, 'a');
Sorry, something went wrong.
52d5983
tap@10.7.2
955ef8c
made t.rejects handle getting expected error but not options Credit: @isaacs Fixes: tapjs/tapjs#384
No branches or pull requests
For this JS file (which is generated from TypeScript) I'm seeing the error below:
Here's the error:
It's generated from this TypeScript file (if that matters):
Versions:
Is this a bug in tap or a bug in TypeScript's await/async-to-generators code?
The text was updated successfully, but these errors were encountered: