Skip to content

Commit

Permalink
Update getSettings docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed May 17, 2023
1 parent 866d329 commit 8769d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/astro/test/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ export async function loadFixture(inlineConfig) {
}

/**
* Create new AstroSettings as Astro APIs could mutate the settings on `astro:config:setup` hook
* The dev/build/sync/check commands run integrations' `astro:config:setup` hook that could mutate
* the `AstroSettings`. This function helps to create a fresh settings object that is used by the
* command functions below to prevent tests from polluting each other.
*/
const getSettings = async () => {
let settings = createSettings(config, fileURLToPath(cwd));
Expand Down

0 comments on commit 8769d3c

Please sign in to comment.