From b7ae05d5b8b9d40d07016f7d9ceb2a80c5f9e4fe Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 2 Oct 2023 18:59:00 +0200 Subject: [PATCH] backend-test-utils: win32 fix Signed-off-by: Patrik Oldsberg --- .../src/filesystem/MockDirectory.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/backend-test-utils/src/filesystem/MockDirectory.test.ts b/packages/backend-test-utils/src/filesystem/MockDirectory.test.ts index 8c4ff49e64..54d32f47d7 100644 --- a/packages/backend-test-utils/src/filesystem/MockDirectory.test.ts +++ b/packages/backend-test-utils/src/filesystem/MockDirectory.test.ts @@ -16,11 +16,7 @@ import fs from 'fs-extra'; import os from 'os'; -import { - join as joinPath, - resolve as resolvePath, - relative as relativePath, -} from 'path'; +import { join as joinPath, relative as relativePath } from 'path'; import { createMockDirectory, MockDirectory } from './MockDirectory'; describe('createMockDirectory', () => { @@ -261,7 +257,7 @@ describe('createMockDirectory', () => { }); it('should reject non-child paths', () => { - const path = resolvePath('/root/a.txt'); + const path = mockDir.resolve('/root/a.txt'); expect(() => mockDir.setContent({ '/root/a.txt': 'a' })).toThrow( `Provided path must resolve to a child path of the mock directory, got '${path}'`, );