@@ -7,7 +7,7 @@ require("dotenv").config();
7
7
const { relativeRecordingsPath } = require ( "@azure-tools/test-recorder" ) ;
8
8
process . env . RECORDINGS_RELATIVE_PATH = relativeRecordingsPath ( ) ;
9
9
10
- module . exports = function ( config ) {
10
+ module . exports = function ( config ) {
11
11
config . set ( {
12
12
// base path that will be used to resolve all patterns (eg. files, exclude)
13
13
basePath : "./" ,
@@ -27,7 +27,7 @@ module.exports = function(config) {
27
27
"karma-coverage" ,
28
28
"karma-sourcemap-loader" ,
29
29
"karma-junit-reporter" ,
30
- "karma-source-map-support"
30
+ "karma-source-map-support" ,
31
31
] ,
32
32
33
33
// list of files / patterns to load in the browser
@@ -37,8 +37,8 @@ module.exports = function(config) {
37
37
pattern : "dist-test/index.browser.js.map" ,
38
38
type : "html" ,
39
39
included : false ,
40
- served : true
41
- }
40
+ served : true ,
41
+ } ,
42
42
] ,
43
43
44
44
// list of files / patterns to exclude
@@ -47,19 +47,17 @@ module.exports = function(config) {
47
47
// preprocess matching files before serving them to the browser
48
48
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
49
49
preprocessors : {
50
- "**/*.js" : [ "sourcemap" , "env" ]
50
+ "**/*.js" : [ "sourcemap" , "env" ] ,
51
51
// IMPORTANT: COMMENT following line if you want to debug in your browsers!!
52
52
// Preprocess source file to calculate code coverage, however this will make source file unreadable
53
53
// "dist-test/index.js": ["coverage"]
54
54
} ,
55
55
56
56
envPreprocessor : [
57
57
"TEST_MODE" ,
58
- "ENDPOINT" ,
59
- "AZURE_CLIENT_SECRET" ,
60
- "AZURE_CLIENT_ID" ,
61
- "AZURE_TENANT_ID" ,
62
- "SUBSCRIPTION_ID"
58
+ "ANOMALY_DETECTOR_API_KEY" ,
59
+ "ANOMALY_DETECTOR_ENDPOINT" ,
60
+ "RECORDINGS_RELATIVE_PATH" ,
63
61
] ,
64
62
65
63
// test results reporter to use
@@ -74,8 +72,8 @@ module.exports = function(config) {
74
72
{ type : "json" , subdir : "." , file : "coverage.json" } ,
75
73
{ type : "lcovonly" , subdir : "." , file : "lcov.info" } ,
76
74
{ type : "html" , subdir : "html" } ,
77
- { type : "cobertura" , subdir : "." , file : "cobertura-coverage.xml" }
78
- ]
75
+ { type : "cobertura" , subdir : "." , file : "cobertura-coverage.xml" } ,
76
+ ] ,
79
77
} ,
80
78
81
79
junitReporter : {
@@ -85,7 +83,7 @@ module.exports = function(config) {
85
83
useBrowserName : false , // add browser name to report and classes names
86
84
nameFormatter : undefined , // function (browser, result) to customize the name attribute in xml testcase element
87
85
classNameFormatter : undefined , // function (browser, result) to customize the classname attribute in xml testcase element
88
- properties : { } // key value pair of properties to add to the <properties> section of the report
86
+ properties : { } , // key value pair of properties to add to the <properties> section of the report
89
87
} ,
90
88
91
89
// web server port
@@ -107,8 +105,8 @@ module.exports = function(config) {
107
105
customLaunchers : {
108
106
ChromeHeadlessNoSandbox : {
109
107
base : "ChromeHeadless" ,
110
- flags : [ "--no-sandbox" , "--disable-web-security" ]
111
- }
108
+ flags : [ "--no-sandbox" , "--disable-web-security" ] ,
109
+ } ,
112
110
} ,
113
111
114
112
// Continuous Integration mode
@@ -127,8 +125,8 @@ module.exports = function(config) {
127
125
mocha : {
128
126
// change Karma's debug.html to the mocha web reporter
129
127
reporter : "html" ,
130
- timeout : "600000"
131
- }
132
- }
128
+ timeout : "600000" ,
129
+ } ,
130
+ } ,
133
131
} ) ;
134
132
} ;
0 commit comments