Merge pull request #20058 from backstage/freben/win
finally fix win tests
This commit is contained in:
@@ -74,9 +74,9 @@ describe('ReadableArrayResponse', () => {
|
||||
|
||||
await expect(
|
||||
fs.readFile(resolvePath(dir, 'file1.yaml'), 'utf8'),
|
||||
).resolves.toBe('site_name: Test\n');
|
||||
).resolves.toMatch(/site_name: Test/);
|
||||
await expect(
|
||||
fs.readFile(resolvePath(dir, 'file2.yaml'), 'utf8'),
|
||||
).resolves.toBe('site_name: Test2\n');
|
||||
).resolves.toMatch(/site_name: Test2/);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -339,7 +339,7 @@ describe('loadConfig', () => {
|
||||
title: 'New Title',
|
||||
},
|
||||
},
|
||||
path: '/root/app-config.yaml',
|
||||
path: `${root}root${sep}app-config.yaml`,
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ describe('ConfigSources', () => {
|
||||
).toEqual([
|
||||
{
|
||||
name: 'FileConfigSource',
|
||||
path: `${root}config.yaml`,
|
||||
path: '/config.yaml',
|
||||
substitutionFunc: subFunc,
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user