11/**
22 * @license
3- * Copyright 2017 Google Inc . All Rights Reserved.
3+ * Copyright 2019 Google LLC . All Rights Reserved.
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
1515 * =============================================================================
1616 */
1717
18- module . exports = function ( config ) {
19- config . set ( {
20- frameworks : [ 'jasmine' , 'karma-typescript' ] ,
21- files : [
22- "src/setup_test.ts" , // Setup the environment for the tests.
23- { pattern : 'src/**/*.ts' }
24- ] ,
25- preprocessors : {
26- '**/*.ts' : [ 'karma-typescript' ] ,
18+ module . exports = function ( config ) {
19+ config . set ( {
20+ frameworks : [ 'jasmine' , 'karma-typescript' ] ,
21+ files : [
22+ 'src/setup_test.ts' , // Setup the environment for the tests.
23+ { pattern : 'src/**/*.ts' }
24+ ] ,
25+ preprocessors : {
26+ '**/*.ts' : [ 'karma-typescript' ] ,
27+ } ,
28+ karmaTypescriptConfig :
29+ { tsconfig : 'tsconfig.json' , compilerOptions : { module : 'commonjs' } } ,
30+ reporters : [ 'progress' , 'karma-typescript' ] ,
31+ browsers : [ 'Chrome' ] ,
32+ browserStack : {
33+ username : process . env . BROWSERSTACK_USERNAME ,
34+ accessKey : process . env . BROWSERSTACK_KEY
35+ } ,
36+ reportSlowerThan : 500 ,
37+ browserNoActivityTimeout : 30000 ,
38+ customLaunchers : {
39+ bs_chrome_mac : {
40+ base : 'BrowserStack' ,
41+ browser : 'chrome' ,
42+ browser_version : 'latest' ,
43+ os : 'OS X' ,
44+ os_version : 'High Sierra'
2745 } ,
28- karmaTypescriptConfig : {
29- tsconfig : 'tsconfig.json' ,
30- compilerOptions : {
31- module : 'commonjs'
32- }
33- } ,
34- reporters : [ 'progress' , 'karma-typescript' ] ,
35- browsers : [ 'Chrome' ] ,
36- browserStack : {
37- username : process . env . BROWSERSTACK_USERNAME ,
38- accessKey : process . env . BROWSERSTACK_KEY
39- } ,
40- reportSlowerThan : 500 ,
41- browserNoActivityTimeout : 30000 ,
42- customLaunchers : {
43- bs_chrome_mac : {
44- base : 'BrowserStack' ,
45- browser : 'chrome' ,
46- browser_version : 'latest' ,
47- os : 'OS X' ,
48- os_version : 'High Sierra'
49- } ,
50- bs_firefox_mac : {
51- base : 'BrowserStack' ,
52- browser : 'firefox' ,
53- // TODO(nsthorat): Change to latest after browser stack infrastructure
54- // stabilizes. https://github.com/tensorflow/tfjs/issues/1620
55- browser_version : '66.0' ,
56- os : 'OS X' ,
57- os_version : 'High Sierra'
58- }
59- } ,
60- client : {
61- jasmine : {
62- random : false
63- } ,
64- args : [ '--grep' , config . grep || '' ]
46+ bs_firefox_mac : {
47+ base : 'BrowserStack' ,
48+ browser : 'firefox' ,
49+ // TODO(nsthorat): Change to latest after browser stack infrastructure
50+ // stabilizes. https://github.com/tensorflow/tfjs/issues/1620
51+ browser_version : '66.0' ,
52+ os : 'OS X' ,
53+ os_version : 'High Sierra'
6554 }
66- } ) ;
67- } ;
55+ } ,
56+ client : { jasmine : { random : false } , args : [ '--grep' , config . grep || '' ] }
57+ } ) ;
58+ } ;
0 commit comments