source: frontend/node_modules/@surma/rollup-plugin-off-main-thread/karma.conf.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * Copyright 2018 Google Inc. All Rights Reserved.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS,
9 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 * See the License for the specific language governing permissions and
11 * limitations under the License.
12 */
13
14module.exports = function(config) {
15 const configuration = {
16 basePath: "",
17 frameworks: ["mocha", "chai"],
18 files: [
19 {
20 pattern: "tests/fixtures/**",
21 included: false
22 },
23 {
24 pattern: "tests/*.test.js"
25 }
26 ],
27 reporters: ["progress"],
28 port: 9876,
29 colors: true,
30 logLevel: config.LOG_INFO,
31 autoWatch: true,
32 singleRun: true,
33 concurrency: 1,
34 browsers: ["Chrome", "Firefox", "Safari"],
35 customLaunchers: {
36 DockerChrome: {
37 base: "ChromeHeadless",
38 flags: ["--no-sandbox"]
39 }
40 }
41 };
42
43 if (process.env.INSIDE_DOCKER) configuration.browsers = ["DockerChrome"];
44
45 config.set(configuration);
46};
Note: See TracBrowser for help on using the repository browser.