mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
6975aca738
commit
7b7ad9f3f4
3 changed files with 4 additions and 4 deletions
|
@ -1240,7 +1240,7 @@ export const EnvInvalidVariables = {
|
|||
name: 'EnvInvalidVariables',
|
||||
title: 'Invalid Environment Variables',
|
||||
message: (errors: Array<string>) =>
|
||||
`The following environment variables defined in \`experimental.env.schema\` are invalid:\n\n${errors.map(err => `- ${err}`).join('\n')}\n`,
|
||||
`The following environment variables defined in \`experimental.env.schema\` are invalid:\n\n${errors.map((err) => `- ${err}`).join('\n')}\n`,
|
||||
} satisfies ErrorData;
|
||||
|
||||
/**
|
||||
|
|
2
packages/astro/src/env/vite-plugin-env.ts
vendored
2
packages/astro/src/env/vite-plugin-env.ts
vendored
|
@ -9,7 +9,7 @@ import {
|
|||
VIRTUAL_MODULES_IDS_VALUES,
|
||||
} from './constants.js';
|
||||
import type { EnvSchema } from './schema.js';
|
||||
import { getEnvFieldType, validateEnvVariable, type ValidationResultErrors } from './validators.js';
|
||||
import { type ValidationResultErrors, getEnvFieldType, validateEnvVariable } from './validators.js';
|
||||
|
||||
// TODO: reminders for when astro:env comes out of experimental
|
||||
// Types should always be generated (like in types/content.d.ts). That means the client module will be empty
|
||||
|
|
|
@ -277,8 +277,8 @@ describe('astro:env validators', () => {
|
|||
fixture.givenInput('ab', {
|
||||
type: 'string',
|
||||
startsWith: 'x',
|
||||
min: 5
|
||||
})
|
||||
min: 5,
|
||||
});
|
||||
fixture.thenResultShouldBeInvalid(['startsWith', 'min']);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue