2020-04-17 13:27:50 +00:00
|
|
|
/**
|
|
|
|
* Copyright 2020 Google Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2020-04-09 18:12:32 +00:00
|
|
|
const base = require('./base');
|
|
|
|
|
2020-04-09 05:56:25 +00:00
|
|
|
module.exports = {
|
2020-04-09 18:12:32 +00:00
|
|
|
...base,
|
2020-06-23 05:18:46 +00:00
|
|
|
require: ['ts-node/register', './test/mocha-utils.ts'],
|
|
|
|
spec: 'test/*.spec.ts',
|
|
|
|
extension: ['ts'],
|
2020-06-18 15:26:30 +00:00
|
|
|
parallel: process.env.CI && !process.env.COVERAGE,
|
2020-04-30 10:19:50 +00:00
|
|
|
// retry twice more, so we run each test up to 3 times if needed.
|
2020-06-18 15:26:30 +00:00
|
|
|
retries: process.env.CI ? 2 : 0,
|
2020-04-27 11:49:13 +00:00
|
|
|
timeout: 25 * 1000,
|
2020-04-09 05:56:25 +00:00
|
|
|
};
|