Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent-Bouisset authored and peaBerberian committed Jun 14, 2024
1 parent cf5b08d commit 23eb81d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/contents/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ function parseRangeHeader(rangeHeader, dataLength) {
return [rangesNb[0], rangesNb[1]];
}
const DEFAULT_CONTENT_SERVER_PORT = 3000;

/** Default export that returns a teardown function that is executed by
* Vitest on test run
* @see https://vitest.dev/config/#globalsetup
* */
export default () => {
createContentServer(DEFAULT_CONTENT_SERVER_PORT);
};
2 changes: 1 addition & 1 deletion vitest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default defineConfig({
test: {
globals: false,
watch: false,
include: ["tests/**/*.test.[jt]s?(x)"],
include: ["tests/**/*.[jt]s?(x)"],
globalSetup: "tests/contents/server.mjs",
browser: getBrowserConfig(process.env.BROWSER_CONFIG),
},
Expand Down

0 comments on commit 23eb81d

Please sign in to comment.