Repository navigation
Expand file tree
/
Copy pathintern.ts
More file actions
47 lines (40 loc) · 1.86 KB
/
Copy pathintern.ts
File metadata and controls
47 lines (40 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export const proxyPort = 9000;
// A fully qualified URL to the Intern proxy
export const proxyUrl = 'http://localhost:9000/';
// Default desired capabilities for all environments. Individual capabilities can be overridden by any of the
// specified browser environments in the `environments` array below as well. See
// https://code.google.com/p/selenium/wiki/DesiredCapabilities for standard Selenium capabilities and
// https://saucelabs.com/docs/additional-config#desired-capabilities for Sauce Labs capabilities.
// Note that the `build` capability will be filled in with the current commit ID from the Travis CI environment
// automatically
export const capabilities = {
'browserstack.debug': false,
project: 'Dojo 2',
name: 'dojo-cli-example'
};
// Support running unit tests from a web server that isn't the intern proxy
export const initialBaseUrl: string | null = (function () {
if (typeof location !== 'undefined' && location.pathname.indexOf('__intern/') > -1) {
return '/';
}
return null;
})();
// The desired AMD loader to use when running unit tests (client.html/client.js). Omit to use the default Dojo
// loader
export const loaders = {
'host-node': '@dojo/loader'
};
// Configuration options for the module loader; any AMD configuration options supported by the specified AMD loader
// can be used here
export const loaderOptions = {
// Packages that should be registered with the loader in each testing environment
packages: [
{ name: 'src', location: '_build/src' },
{ name: 'tests', location: '_build/tests' },
{ name: 'grunt-dojo2', location: 'node_modules/grunt-dojo2'}
]
};
// Non-functional test suite(s) to run in each browser
export const suites = [ 'tests/unit/all' ];
// A regular expression matching URLs to files that should not be included in code coverage analysis
export const excludeInstrumentation = /(?:node_modules|bower_components|tests)[\/\\]/;