refactor(test-utils): deprecate the isDockerDisabledForTests function

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-07-10 12:53:32 +02:00
parent b45da0768b
commit edf5cc349e
5 changed files with 15 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-test-utils': patch
---
The function `isDockerDisabledForTests` is deprecated and will no longer be exported in the near future as it should only be used internally.
+1 -1
View File
@@ -54,7 +54,7 @@ export interface CreateMockDirectoryOptions {
mockOsTmpDir?: boolean;
}
// @public (undocumented)
// @public @deprecated (undocumented)
export function isDockerDisabledForTests(): boolean;
// @public (undocumented)
@@ -15,9 +15,18 @@
*/
import { CreateMockDirectoryOptions } from './filesystem';
import { isDockerDisabledForTests as _isDockerDisabledForTests } from './util';
/**
* @public
* @deprecated Use `CreateMockDirectoryOptions` from `@backstage/backend-test-utils` instead.
*/
export type MockDirectoryOptions = CreateMockDirectoryOptions;
/**
* @public
* @deprecated This is an internal function and will no longer be exported from this package.
*/
export function isDockerDisabledForTests(): boolean {
return _isDockerDisabledForTests();
}
-1
View File
@@ -26,4 +26,3 @@ export * from './database';
export * from './msw';
export * from './filesystem';
export * from './next';
export * from './util';
@@ -14,7 +14,6 @@
* limitations under the License.
*/
/** @public */
export function isDockerDisabledForTests() {
// If we are not running in continuous integration, the default is to skip
// the (relatively heavy, long running) docker based tests. If you want to