<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>GOOD Playwright Version: 1.31.2</li>
<li>BAD Playwright Version: 1.32.0</li>
<li>Operating System: Linux</li>
</ul>
<p dir="auto">After update playwright. My test.ts(name of file) with fixtures is compiling with other test nested in other folder.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: test file &quot;tests/foo/save.test.ts&quot; should not import test file &quot;test.ts&quot;"><pre class="notranslate"><code class="notranslate">Error: test file "tests/foo/save.test.ts" should not import test file "test.ts"
</code></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
Before version 1.32.0 works fine</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: Version 1.32.0</li>
<li>Operating System: OS X Ventura 13.2.1</li>
<li>Browser: Chrome</li>
</ul>
<p dir="auto">This is the same issue as reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1640464689" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/21979" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/21979/hovercard" href="https://github.com/microsoft/playwright/issues/21979">#21979</a> except that my path structure is <em>applications/kb-articles/tests/e2e/fixtures/test.ts</em> and I have to rename <em>test.ts</em> to any other name for this work without throwing the error.</p>
<p dir="auto"><strong>The fixture</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// @ts-check
import { test as base } from '@playwright/test';

exports.test = base.extend({
  page: async ({ page, playwright }, use, testInfo) =&gt; {
    ...
  },
});"><pre class="notranslate"><code class="notranslate">// @ts-check
import { test as base } from '@playwright/test';

exports.test = base.extend({
  page: async ({ page, playwright }, use, testInfo) =&gt; {
    ...
  },
});
</code></pre></div>
<p dir="auto"><strong>Using it</strong><br>
<code class="notranslate">import { test } from '../fixtures/test';</code></p>