-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ion (#638) * Make es-next compiler filter less restrictive (fixes #636). Force test files to use testcafe version of babel-runtime (fixes #637) * Report fixtureStart event to reporter plugin for fixtures that declared in the same file (fixes #635) * Bump version * Fix regenerator test for node 10
- Loading branch information
1 parent
06f0326
commit f0fc6ba
Showing
10 changed files
with
86 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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
13 changes: 13 additions & 0 deletions
13
test/functional/fixtures/regression/gh-637/data/testfile.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ClientFunction } from 'testcafe'; | ||
|
||
const getLocation = ClientFunction(() => document.location.toString()); | ||
|
||
fixture `Some fixture`; | ||
|
||
test('Some test', async t => { | ||
await t.wait(30); | ||
|
||
await getLocation(); | ||
|
||
return Promise.resolve(); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var tmp = require('tmp'); | ||
var path = require('path'); | ||
var copy = require('recursive-copy'); | ||
|
||
describe('[Regression](GH-637)', function () { | ||
it("Should let test file locate babel-runtime if it's not installed on global or test file node_modules lookup scope", function () { | ||
tmp.setGracefulCleanup(); | ||
|
||
var tmpDir = tmp.dirSync().name; | ||
var srcDir = path.join(__dirname, './data'); | ||
|
||
return copy(srcDir, tmpDir).then(function () { | ||
var testFile = path.join(tmpDir, './testfile.js'); | ||
|
||
return runTests(testFile, 'Some test', { only: 'chrome' }); | ||
}); | ||
}); | ||
}); |
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
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
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
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