jason0x43 on 2.3.3
jason0x43 on 2.3
Updating metadata for 2.3.3 Updating source version to 2.3.… (compare)
jason0x43 on 2.3
More mouseMoveTo updates Relax… (compare)
jason0x43 on 2.3
Update mouseMoveTo test to work… (compare)
jason0x43 on 2.3
Backport fix parent frame switc… Backport fix capabilities for S… Backport webdriver fixes for IE… and 6 more (compare)
dependabot[bot] on npm_and_yarn
jason0x43 on master
Bump highlight.js from 9.15.8 t… (compare)
dependabot[bot] on npm_and_yarn
jason0x43 on master
Bump handlebars from 4.1.0 to 4… (compare)
jason0x43 on gh-pages
Update assets (compare)
dependabot[bot] on npm_and_yarn
Bump highlight.js from 9.15.8 t… (compare)
dependabot[bot] on npm_and_yarn
Bump highlight.js from 9.15.10 … (compare)
jason0x43 on 4.9.0
jason0x43 on 4.9
Updating metadata for 4.9.0 Updating source version to 4.9.… (compare)
The return value of this.async
is a Deferred object, so it shouldn't be destructured.
const dfd = this.async();
articles.events.on("create", () => dfd.resolve());
You can also use a Promise:
it("should emit an event on create", function () {
return new Promise(resolve => {
articles.events.on("create", resolve);
articles.create({ title: "win" });
});
});
this
should be fine since you're using a function
declaration for your test, but Tests are also passed the current Test
object to support arrow function test callbacks (where this
isn't applicable), so you can doit("should emit an event on create", function (test) {
const dfd = test.async();
describe("library", () => {
it("should compile without errors", () => {
// Note: This is not executed, only compiled for type-checking.
() => {
const n: number = "";
};
});
});
"resolution": "1280x1024"
to the environment, but nothing else. Do I need some extra setting to get the window maximized?
beforeEach
call, or should it average them for a suite? Should those results be kept as Suite properties, or should Intern just include that info in events emitted when a beforeEach
(afterEach, etc) finishes?
Hi, I have a custom reporter that listens to the testEnd event for some functional tests
@eventHandler()
testEnd(test: Test) {
but on running, this event seems to get fired during initialisation before the browser even loads (it also hits after an actual test when I would expect it)
Is this as expected behaviour?
node_modules/@theintern/digdug/BrowserStackTunnel.d.ts:2:36 - error TS2307: Cannot find module '@theintern/common'.
2 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/digdug/interfaces.d.ts:1:36 - error TS2307: Cannot find module '@theintern/common'.
1 export { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/digdug/SeleniumTunnel.d.ts:3:36 - error TS2307: Cannot find module '@theintern/common'.
3 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/digdug/Tunnel.d.ts:2:66 - error TS2307: Cannot find module '@theintern/common'.
2 import { Evented, EventObject, Handle, CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/leadfoot/Command.d.ts:3:36 - error TS2307: Cannot find module '@theintern/common'.
3 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/leadfoot/Element.d.ts:2:36 - error TS2307: Cannot find module '@theintern/common'.
2 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/leadfoot/interfaces.d.ts:2:36 - error TS2307: Cannot find module '@theintern/common'.
2 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/leadfoot/Server.d.ts:1:52 - error TS2307: Cannot find module '@theintern/common'.
1 import { CancellablePromise, RequestOptions } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@theintern/leadfoot/Session.d.ts:4:36 - error TS2307: Cannot find module '@theintern/common'.
4 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/@types/istanbul-lib-instrument/index.d.ts:8:30 - error TS2307: Cannot find module 'source-map'.
8 import { RawSourceMap } from 'source-map';
~~~~~~~~~~~~
node_modules/@types/istanbul-lib-source-maps/index.d.ts:8:30 - error TS2307: Cannot find module 'source-map'.
8 import { RawSourceMap } from 'source-map';
~~~~~~~~~~~~
node_modules/intern/lib/BenchmarkTest.d.ts:1:36 - error TS2307: Cannot find module '@theintern/common'.
1 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/intern/lib/channels/Base.d.ts:1:36 - error TS2307: Cannot find module '@theintern/common'.
1 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/intern/lib/executors/Executor.d.ts:2:44 - error TS2307: Cannot find module '@theintern/common'.
2 import { Handle, CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/intern/lib/executors/Node.d.ts:4:36 - error TS2307: Cannot find module '@theintern/common'.
4 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/intern/lib/RemoteSuite.d.ts:1:36 - error TS2307: Cannot find module '@theintern/common'.
1 import { CancellablePromise } from '@theintern/common';
~~~~~~~~~~~~~~~~~~~
node_modules/intern/lib/reporters/Benchmark.d.ts:22:22 - error TS2694: Namespace '"C:/Users/Khobab/Documents/webapps/node_modules/intern/lib/reporters/Benchmark"' has no exported member 'Times'.
22 times: Benchmark.Times;
~~~~~
node_modules/intern/lib/Server.d.ts:5:24 - error TS2307: Cannot find module '@theintern/common'.
5 import { Handle } from '@theintern/common';
~~~~~~~~~~~~
{
"compilerOptions": {
"noImplicitAny": true,
"noImplicitUseStrict": true,
"noEmitOnError": false,
"module": "amd",
"moduleResolution": "classic",
"target": "es5",
"sourceMap": true,
"experimentalDecorators": true,
"types": ["intern"],
"baseUrl": ".",
"paths": {
"abc/*": ["src/abc/*"],
"def/*": ["src/def/*"]
}
},
"exclude": [
"node_modules"
],
"include": [
"src/**/*",
"tests/unit/**/*"
],
"files": [
"./node_modules/dojo-typings/dojo/1.11/index.d.ts",
"./node_modules/dojo-typings/dojo/1.11/modules.d.ts",
"./node_modules/dojo-typings/dijit/1.11/index.d.ts",
"./node_modules/dojo-typings/dijit/1.11/modules.d.ts",
"./node_modules/dojo-typings/dojox/1.11/index.d.ts",
"./node_modules/dojo-typings/dojox/1.11/modules.d.ts",
"./node_modules/dojo-typings/dojox/1.11/html/entities.d.ts",
"./node_modules/dojo-typings/custom/dgrid/1.1/dgrid.d.ts",
"./node_modules/dojo-typings/custom/dstore/1.1/dstore.d.ts"
]
}
You may be able to use paths
, like
{
"compilerOptions": {
"paths": {
"@theintern/common": ["node_modules/@theintern/common/index"],
"source-map": ["node_modules/source-map/source-map"]
}
}
However, you may still run into issues because modules published through npm are going to assume node-based module resolution.