diff options
author | 2022-09-15 21:24:23 +0000 | |
---|---|---|
committer | 2022-09-15 21:24:23 +0000 | |
commit | 13a4b0d48813a4aa42f3a4ccd54ff7d37c8008a6 (patch) | |
tree | d84ca7fbac234f044f2166f141362147a37c2674 /packages/astro/test/static-build-dir.test.js | |
parent | 7acded4d0eaa806617661580cc4168a8ec0a82d4 (diff) | |
download | astro-13a4b0d48813a4aa42f3a4ccd54ff7d37c8008a6.tar.gz astro-13a4b0d48813a4aa42f3a4ccd54ff7d37c8008a6.tar.zst astro-13a4b0d48813a4aa42f3a4ccd54ff7d37c8008a6.zip |
Revert "Adds a new "astro:build:generated" hook for SSG builds (#4772)" (#4774)
This reverts commit 03b18e8d1b9b88d7e9b22e15809a78cc222cb55b.
Diffstat (limited to '')
-rw-r--r-- | packages/astro/test/static-build-dir.test.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/astro/test/static-build-dir.test.js b/packages/astro/test/static-build-dir.test.js index d6a8c90c3..d09756af2 100644 --- a/packages/astro/test/static-build-dir.test.js +++ b/packages/astro/test/static-build-dir.test.js @@ -4,8 +4,6 @@ import { loadFixture } from './test-utils.js'; describe('Static build: dir takes the URL path to the output directory', () => { /** @type {URL} */ let checkDir; - /** @type {URL} */ - let checkGeneratedDir; before(async () => { const fixture = await loadFixture({ root: './fixtures/static-build-dir/', @@ -13,9 +11,6 @@ describe('Static build: dir takes the URL path to the output directory', () => { { name: '@astrojs/dir', hooks: { - 'astro:build:generated': ({ dir }) => { - checkGeneratedDir = dir; - }, 'astro:build:done': ({ dir }) => { checkDir = dir; }, @@ -30,6 +25,5 @@ describe('Static build: dir takes the URL path to the output directory', () => { expect(removeTrailingSlash(checkDir.toString())).to.be.equal( removeTrailingSlash(new URL('./fixtures/static-build-dir/dist', import.meta.url).toString()) ); - expect(checkDir.toString()).to.be.equal(checkGeneratedDir.toString()); }); }); |