mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
fix studio tests
This commit is contained in:
parent
4c4ae2f470
commit
c9ce9d2309
2 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,7 @@ function astroDBIntegration(): AstroIntegration {
|
|||
}
|
||||
|
||||
let dbPlugin: VitePlugin;
|
||||
if (studio && command === 'build') {
|
||||
if (studio && command === 'build' && process.env.ASTRO_DB_TEST_ENV !== '1') {
|
||||
appToken = await getManagedAppTokenOrExit();
|
||||
connectedToRemote = true;
|
||||
dbPlugin = vitePluginDb({
|
||||
|
|
|
@ -3,6 +3,10 @@ import { load as cheerioLoad } from 'cheerio';
|
|||
import { loadFixture } from '../../astro/test/test-utils.js';
|
||||
import testAdapter from '../../astro/test/test-adapter.js';
|
||||
|
||||
// TODO(fks): Rename this to something more generic/generally useful
|
||||
// like `ASTRO_MONOREPO_TEST_ENV` if @astrojs/db is merged into astro.
|
||||
process.env.ASTRO_DB_TEST_ENV = '1';
|
||||
|
||||
describe('astro:db', () => {
|
||||
let fixture;
|
||||
before(async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue