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
46f5ce01dd
commit
fb2b9ad21f
2 changed files with 3 additions and 6 deletions
5
packages/astro/src/env/schema.ts
vendored
5
packages/astro/src/env/schema.ts
vendored
|
@ -91,10 +91,7 @@ const EnvSchemaKey = z
|
|||
message: 'A valid variable name can only contain uppercase letters, numbers and underscores.',
|
||||
});
|
||||
|
||||
export const EnvSchema = z.record(
|
||||
EnvSchemaKey,
|
||||
z.intersection(EnvFieldMetadata, EnvFieldType)
|
||||
);
|
||||
export const EnvSchema = z.record(EnvSchemaKey, z.intersection(EnvFieldMetadata, EnvFieldType));
|
||||
|
||||
// https://www.totaltypescript.com/concepts/the-prettify-helper
|
||||
type Prettify<T> = {
|
||||
|
|
|
@ -3,8 +3,8 @@ import { describe, it } from 'node:test';
|
|||
import stripAnsi from 'strip-ansi';
|
||||
import { z } from 'zod';
|
||||
import { validateConfig } from '../../../dist/core/config/validate.js';
|
||||
import { envField } from '../../../dist/env/config.js';
|
||||
import { formatConfigErrorMessage } from '../../../dist/core/messages.js';
|
||||
import { envField } from '../../../dist/env/config.js';
|
||||
|
||||
describe('Config Validation', () => {
|
||||
it('empty user config is valid', async () => {
|
||||
|
@ -392,7 +392,7 @@ describe('Config Validation', () => {
|
|||
experimental: {
|
||||
env: {
|
||||
schema: {
|
||||
"123ABC": envField.string({ access: 'public', context: 'server' }),
|
||||
'123ABC': envField.string({ access: 'public', context: 'server' }),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue