Merge pull request #10020 from backstage/rugvip/tdetet

techdocs-cli: tweak e2e test setup
This commit is contained in:
Patrik Oldsberg
2022-03-09 10:41:06 +01:00
committed by GitHub
3 changed files with 26 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright 2022 The Backstage Authors
*
* 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.
*/
const path = require('path');
module.exports = require('@backstage/cli/config/jest').then(baseConfig => ({
...baseConfig,
rootDir: path.resolve(__dirname, 'e2e-tests'),
}));
@@ -58,7 +58,7 @@ const timeout = 25000;
jest.setTimeout(timeout * 2);
describe('end-to-end', () => {
const cwd = path.resolve(__dirname, 'example-docs');
const cwd = path.resolve(__dirname, '../src/example-docs');
afterEach(async () => {
// On Windows the pid of a spawned process may be wrong
+3 -3
View File
@@ -27,9 +27,9 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --testPathIgnorePatterns=src/e2e.test.ts",
"test:e2e": "backstage-cli test src/e2e.test.ts",
"test:e2e:ci": "backstage-cli test --watchAll=false --ci src/e2e.test.ts",
"test": "backstage-cli package test",
"test:e2e": "backstage-cli test --config e2e-test.config.js",
"test:e2e:ci": "backstage-cli test --config e2e-test.config.js --watchAll=false --ci",
"test:cypress": "cypress open",
"prepack": "./scripts/prepack.sh"
},