Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@babel/plugin-transform-async-to-generator": "^7.22.5",
"@babel/plugin-transform-exponentiation-operator": "^7.22.5",
"@babel/plugin-transform-for-of": "^7.22.15",
"@babel/plugin-transform-runtime": "^7.23.2",
"@babel/plugin-transform-runtime": "7.23.3",
"@babel/preset-env": "^7.23.2",
"@babel/preset-flow": "^7.22.15",
"@babel/preset-react": "^7.22.15",
Expand Down
10 changes: 10 additions & 0 deletions test/functional/fixtures/regression/gh-8091/imports/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default async function testFunction () {
try {
await fetch('');
}
catch {
return true;
}

return true;
}
9 changes: 9 additions & 0 deletions test/functional/fixtures/regression/gh-8091/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const config = require('../../../config');

describe('[Regression](GH-8091)', function () {
if (!config.esm) {
it('Should prepare and execute typescript test', function () {
return runTests('./testcafe-fixtures/index.ts');
});
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import testFunction from "../imports/script";

fixture `[Regression](GH-8091)`

test('simple test', async t => {
const test = await testFunction();

await t.expect(test).eql(true);
})