Skip to content

Commit 7f93633

Browse files
committed
fix missing location field
1 parent 9d59702 commit 7f93633

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

e2e/projects/coverage.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('test projects coverage', () => {
4545
expect(
4646
fs.existsSync(join(__dirname, 'fixtures/coverage/index.html')),
4747
).toBeTruthy();
48-
}, 15000);
48+
}, 20000);
4949

5050
it('should run projects correctly with coverage.include', async () => {
5151
const { cli, expectExecSuccess } = await runRstestCli({

e2e/rstest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from '@rstest/core';
22

33
export default defineConfig({
44
setupFiles: ['../scripts/rstest.setup.ts'],
5-
testTimeout: 10_000,
5+
testTimeout: process.env.CI ? 20_000 : 10_000,
66
slowTestThreshold: 2_000,
77
output: {
88
externals: {

packages/core/src/runtime/runner/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export function createRunner({ workerState }: { workerState: WorkerState }): {
6060
testPath: test.testPath,
6161
project: test.project,
6262
type: test.type,
63+
location: test.location,
6364
tests: test.type === 'suite' ? test.tests.map(toTestInfo) : [],
6465
};
6566
}),

packages/core/src/types/testSuite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export type TestSuiteInfo = {
8888
testPath: TestPath;
8989
project: string;
9090
type: 'suite';
91+
location?: Location;
9192
};
9293

9394
export type TestSuite = TestSuiteInfo & {
@@ -102,7 +103,6 @@ export type TestSuite = TestSuiteInfo & {
102103
beforeAllListeners?: BeforeAllListener[];
103104
afterEachListeners?: AfterEachListener[];
104105
beforeEachListeners?: BeforeEachListener[];
105-
location?: Location;
106106
};
107107

108108
export type TestSuiteListeners = keyof Pick<

0 commit comments

Comments
 (0)