-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
586 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import assert from 'node:assert/strict'; | ||
import { after, describe, before, it } from 'node:test'; | ||
import { loadFixture, isMacOS } from './test-utils.js'; | ||
|
||
// TODO: fix this tests in macOS | ||
if (!isMacOS) { | ||
describe('<Debug />', () => { | ||
/** @type {import('./test-utils').Fixture} */ | ||
let fixture; | ||
/** @type {import('./test-utils').DevServer} */ | ||
let devServer; | ||
|
||
before(async () => { | ||
fixture = await loadFixture({ root: './fixtures/debug-component/' }); | ||
devServer = await fixture.startDevServer(); | ||
}); | ||
|
||
after(async () => { | ||
await devServer.stop(); | ||
}); | ||
|
||
it('Works in markdown pages', async () => { | ||
const response = await fixture.fetch('/posts/first'); | ||
assert.equal(response.status, 200); | ||
}); | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.