Skip to content

Commit 099cd71

Browse files
wip
1 parent 30ce4fc commit 099cd71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/astro/test/error-map.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as assert from 'node:assert/strict';
22
import { describe, it } from 'node:test';
3-
import { errorMap } from '../dist/core/errors/zod-error-map.js';
3+
import { z3ErrorMap } from '../dist/core/errors/zod-error-map.js';
44
import { z } from '../dist/zod.js';
55
import { fixLineEndings } from './test-utils.js';
66

@@ -101,7 +101,7 @@ function messages(error) {
101101
return error.errors.map((e) => e.message);
102102
}
103103

104-
function getParseError(schema, entry, parseOpts = { errorMap }) {
104+
function getParseError(schema, entry, parseOpts = { errorMap: z3ErrorMap }) {
105105
const res = schema.safeParse(entry, parseOpts);
106106
assert.equal(res.success, false, 'Schema should raise error');
107107
return res.error;

0 commit comments

Comments
 (0)