Skip to content

Commit

Permalink
tests move outside of lib
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Alvarez <[email protected]>
  • Loading branch information
jonalvarezz committed Jun 5, 2024
1 parent eb9cd13 commit fb4f9dd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, expect, test } from '@jest/globals';
import { readFileSync } from 'fs';
import { globSync as glob } from 'fast-glob';

import { ajv } from '../ajv';
import { ajv } from '../lib/ajv';
import { ValidateFunction } from 'ajv';

const FILENAME_TO_DEBUG = ''; // update to debug a single file
Expand Down Expand Up @@ -44,7 +44,7 @@ function load(spec: VersionSpec): VersionData {

const schema = {
name: folderName,
importPath: `../../lib/${folderName}/${fileName}`,
importPath: `../lib/${folderName}/${fileName}`,
};

if (folderName === '0-base') {
Expand Down Expand Up @@ -115,7 +115,7 @@ describe('Base schemas', () => {
const examplePaths = glob(`examples/${compatibleVersionGlob}/**/*.json`);

beforeAll(async () => {
const { schema: _schema } = await import(`../../lib/0-base/${version}`);
const { schema: _schema } = await import(`../lib/0-base/${version}`);
schema = _schema;

// Compile schema
Expand Down

0 comments on commit fb4f9dd

Please sign in to comment.