Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024 07 26 vitest #1147

Closed
wants to merge 16 commits into from
Prev Previous commit
Next Next commit
fix compounds
  • Loading branch information
ealush committed Jul 27, 2024
commit a779324a55dee96eb2abe24c705cc4f5c85a69ae
2 changes: 1 addition & 1 deletion packages/n4s/src/exports/__tests__/email.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { enforce } from 'n4s';
import 'email';
import '../email';

describe('isEmail', () => {
it('Should pass for valid emails', () => {
2 changes: 1 addition & 1 deletion packages/n4s/src/exports/__tests__/isUrl.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { enforce } from 'n4s';
import 'isURL';
import '../isURL';

describe('isURL', () => {
it('Should pass for valid URLs', () => {
4 changes: 2 additions & 2 deletions packages/n4s/src/plugins/compounds/__tests__/allOf.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { enforce } from '@/runtime/enforce';
import * as ruleReturn from '@/lib/ruleReturn';
import 'compounds';
import { enforce } from '@/runtime/enforce';
import '../../../exports/compounds';

describe('allOf', () => {
describe('Lazy Assertions', () => {
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as ruleReturn from '@/lib/ruleReturn';
import { enforce } from '@/runtime/enforce';

import 'compounds';
import '../../../exports/compounds';

describe('noneOf', () => {
describe('Lazy Assertions', () => {
6 changes: 3 additions & 3 deletions packages/n4s/src/plugins/compounds/__tests__/oneOf.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { enforce } from '@/runtime/enforce';
import * as ruleReturn from '@/lib/ruleReturn';
import { enforce } from '@/runtime/enforce';

import 'schema';
import 'compounds';
import '../../../exports/schema';
import '../../../exports/compounds';

describe('enforce.oneOf', () => {
it('Should fail when multiple enforcements are met', () => {