@@ -80,7 +80,7 @@ describe('transformer', () => {
80
80
};
81
81
export default _meta;
82
82
export const Story = {};
83
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
83
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
84
84
if (_isRunningFromThisFile) {
85
85
_test("Story", _testStory("Story", Story, _meta, []));
86
86
}
@@ -109,7 +109,7 @@ describe('transformer', () => {
109
109
};
110
110
export default _meta;
111
111
export const Story = {};
112
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
112
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
113
113
if (_isRunningFromThisFile) {
114
114
_test("Story", _testStory("Story", Story, _meta, []));
115
115
}
@@ -139,7 +139,7 @@ describe('transformer', () => {
139
139
};
140
140
export default meta;
141
141
export const Story = {};
142
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
142
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
143
143
if (_isRunningFromThisFile) {
144
144
_test("Story", _testStory("Story", Story, meta, []));
145
145
}
@@ -170,7 +170,7 @@ describe('transformer', () => {
170
170
};
171
171
export default meta;
172
172
export const Story = {};
173
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
173
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
174
174
if (_isRunningFromThisFile) {
175
175
_test("Story", _testStory("Story", Story, meta, []));
176
176
}
@@ -206,7 +206,7 @@ describe('transformer', () => {
206
206
label: 'Primary Button'
207
207
}
208
208
};
209
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
209
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
210
210
if (_isRunningFromThisFile) {
211
211
_test("Primary", _testStory("Primary", Primary, _meta, []));
212
212
}
@@ -240,7 +240,7 @@ describe('transformer', () => {
240
240
}
241
241
};
242
242
export { Primary };
243
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
243
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
244
244
if (_isRunningFromThisFile) {
245
245
_test("Primary", _testStory("Primary", Primary, _meta, []));
246
246
}
@@ -276,7 +276,7 @@ describe('transformer', () => {
276
276
};
277
277
export const Secondary = {};
278
278
export { Primary };
279
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
279
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
280
280
if (_isRunningFromThisFile) {
281
281
_test("Secondary", _testStory("Secondary", Secondary, _meta, []));
282
282
_test("Primary", _testStory("Primary", Primary, _meta, []));
@@ -308,7 +308,7 @@ describe('transformer', () => {
308
308
export default _meta;
309
309
export const Story = {};
310
310
export const nonStory = 123;
311
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
311
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
312
312
if (_isRunningFromThisFile) {
313
313
_test("Story", _testStory("Story", Story, _meta, []));
314
314
}
@@ -365,7 +365,7 @@ describe('transformer', () => {
365
365
tags: ['include-me']
366
366
};
367
367
export const NotIncluded = {};
368
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
368
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
369
369
if (_isRunningFromThisFile) {
370
370
_test("Included", _testStory("Included", Included, _meta, []));
371
371
}
@@ -396,7 +396,7 @@ describe('transformer', () => {
396
396
export const NotIncluded = {
397
397
tags: ['exclude-me']
398
398
};
399
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
399
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
400
400
if (_isRunningFromThisFile) {
401
401
_test("Included", _testStory("Included", Included, _meta, []));
402
402
}
@@ -424,7 +424,7 @@ describe('transformer', () => {
424
424
export const Skipped = {
425
425
tags: ['skip-me']
426
426
};
427
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
427
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
428
428
if (_isRunningFromThisFile) {
429
429
_test("Skipped", _testStory("Skipped", Skipped, _meta, ["skip-me"]));
430
430
}
@@ -456,7 +456,7 @@ describe('transformer', () => {
456
456
};
457
457
export default meta;
458
458
export const Primary = {};
459
- const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath );
459
+ const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath );
460
460
if (_isRunningFromThisFile) {
461
461
_test("Primary", _testStory("Primary", Primary, meta, []));
462
462
}
0 commit comments