diff options
author | 2021-07-06 15:14:22 -0400 | |
---|---|---|
committer | 2021-07-06 15:14:22 -0400 | |
commit | d8ceff5facbbe7d7b358c718e73c2cfaa31cae5a (patch) | |
tree | 6d28a563a60853c7b75ad06673597240b2e0aaee /packages/create-astro/test/create-astro.test.js | |
parent | 2ab625bee86f752ca963a572ee28b93cd94e8643 (diff) | |
download | astro-d8ceff5facbbe7d7b358c718e73c2cfaa31cae5a.tar.gz astro-d8ceff5facbbe7d7b358c718e73c2cfaa31cae5a.tar.zst astro-d8ceff5facbbe7d7b358c718e73c2cfaa31cae5a.zip |
Implements templates from external repos (#603)
* Implements templates from external repos
* Adds a changeset
Diffstat (limited to 'packages/create-astro/test/create-astro.test.js')
-rw-r--r-- | packages/create-astro/test/create-astro.test.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/create-astro/test/create-astro.test.js b/packages/create-astro/test/create-astro.test.js index 30f466d30..d095b2da9 100644 --- a/packages/create-astro/test/create-astro.test.js +++ b/packages/create-astro/test/create-astro.test.js @@ -1,15 +1,11 @@ import fs from 'fs'; import path from 'path'; -import { fileURLToPath } from 'url'; import http from 'http'; import { green, red } from 'kleur/colors'; import execa from 'execa'; import glob from 'tiny-glob'; import { TEMPLATES } from '../dist/templates.js'; - -// config -const GITHUB_SHA = process.env.GITHUB_SHA || execa.sync('git', ['rev-parse', 'HEAD']).stdout; // process.env.GITHUB_SHA will be set in CI; if testing locally execa() will gather this -const FIXTURES_DIR = path.join(fileURLToPath(path.dirname(import.meta.url)), 'fixtures'); +import { GITHUB_SHA, FIXTURES_DIR } from './helpers.js'; // helpers async function fetch(url) { |