preparations for isolated TS modules

This commit is contained in:
Patrik Oldsberg
2020-05-28 18:36:41 +02:00
parent 6c3b65da9f
commit 6a6a901a2b
9 changed files with 12 additions and 44 deletions
@@ -15,3 +15,4 @@
*/
require('jest-fetch-mock').enableMocks();
export {};
+4 -1
View File
@@ -14,8 +14,11 @@
* limitations under the License.
*/
import { PluginEnvironment } from './types';
describe('test', () => {
it('unbreaks the test runner', () => {
expect(true).toBeTruthy();
const unbreaker = {} as PluginEnvironment;
expect(unbreaker).toBeTruthy();
});
});
-21
View File
@@ -1,21 +0,0 @@
/*
* Copyright 2020 Spotify AB
*
* 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.
*/
describe('dummy', () => {
it('dummy', () => {
expect(1).toBe(1);
});
});
-21
View File
@@ -1,21 +0,0 @@
/*
* Copyright 2020 Spotify AB
*
* 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.
*/
describe('test', () => {
it('unbreaks the test runner', () => {
expect(true).toBeTruthy();
});
});
+1
View File
@@ -15,3 +15,4 @@
*/
require('jest-fetch-mock').enableMocks();
export {};
@@ -15,3 +15,4 @@
*/
require('jest-fetch-mock').enableMocks();
export {};
+2 -1
View File
@@ -28,7 +28,8 @@ import {
} from 'circleci-api';
import { createApiRef } from '@backstage/core';
export { BuildWithSteps, BuildStepAction, BuildSummary, GitType };
export { GitType };
export type { BuildWithSteps, BuildStepAction, BuildSummary };
export const circleCIApiRef = createApiRef<CircleCIApi>({
id: 'plugin.circleci.service',
@@ -14,6 +14,8 @@
* limitations under the License.
*/
import '@backstage/backend-common';
describe('test', () => {
it('unbreaks the test runner', () => {
expect(true).toBeTruthy();
@@ -15,3 +15,4 @@
*/
require('jest-fetch-mock').enableMocks();
export {};