We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ce4fc commit 099cd71Copy full SHA for 099cd71
1 file changed
packages/astro/test/error-map.test.js
@@ -1,6 +1,6 @@
1
import * as assert from 'node:assert/strict';
2
import { describe, it } from 'node:test';
3
-import { errorMap } from '../dist/core/errors/zod-error-map.js';
+import { z3ErrorMap } from '../dist/core/errors/zod-error-map.js';
4
import { z } from '../dist/zod.js';
5
import { fixLineEndings } from './test-utils.js';
6
@@ -101,7 +101,7 @@ function messages(error) {
101
return error.errors.map((e) => e.message);
102
}
103
104
-function getParseError(schema, entry, parseOpts = { errorMap }) {
+function getParseError(schema, entry, parseOpts = { errorMap: z3ErrorMap }) {
105
const res = schema.safeParse(entry, parseOpts);
106
assert.equal(res.success, false, 'Schema should raise error');
107
return res.error;
0 commit comments