Skip to content

Commit

Permalink
Everything is relative to src.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Jun 7, 2024
1 parent cb902b6 commit e6272d5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tools/tests/linter/SchemasValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { Logger } from 'Logger'
import SchemasValidator from '../../src/linter/SchemasValidator'
import SchemasValidator from 'linter/SchemasValidator'

test('validate() - named_schemas', () => {
const validator = new SchemasValidator('./tools/tests/linter/fixtures/schemas_validator/named_schemas', new Logger())
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/merger/OpenApiMerger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import OpenApiMerger from 'merger/OpenApiMerger'
import fs from 'fs'
import { Logger } from '../../src/Logger'
import { Logger } from 'Logger'

test('merge()', () => {
const merger = new OpenApiMerger('./tools/tests/merger/fixtures/spec/', new Logger())
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/tester/ansi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* compatible open source license.
*/

import * as ansi from '../../src/tester/Ansi'
import * as ansi from 'tester/Ansi'

test('b', () => {
expect(ansi.b('xyz')).toEqual('\x1b[1mxyz\x1b[0m')
Expand Down
4 changes: 2 additions & 2 deletions tools/tests/tester/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* compatible open source license.
*/

import { overall_result } from '../../src/tester/helpers'
import { type Evaluation, Result } from '../../src/tester/types/eval.types'
import { overall_result } from 'tester/helpers'
import { type Evaluation, Result } from 'tester/types/eval.types'

describe('helpers', () => {
function e (...results: Result[]): Evaluation[] {
Expand Down
18 changes: 9 additions & 9 deletions tools/tests/tester/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
*/

import YAML from 'yaml'
import type { ChapterEvaluation, Evaluation, StoryEvaluation } from '../../src/tester/types/eval.types'
import type { ChapterEvaluation, Evaluation, StoryEvaluation } from 'tester/types/eval.types'
import { read_yaml } from 'helpers'
import StoryEvaluator from '../../src/tester/StoryEvaluator'
import OperationLocator from '../../src/tester/OperationLocator'
import ChapterReader from '../../src/tester/ChapterReader'
import SchemaValidator from '../../src/tester/SchemaValidator'
import ChapterEvaluator from '../../src/tester/ChapterEvaluator'
import { OpenSearchHttpClient } from '../../src/OpenSearchHttpClient'
import StoryEvaluator from 'tester/StoryEvaluator'
import OperationLocator from 'tester/OperationLocator'
import ChapterReader from 'tester/ChapterReader'
import SchemaValidator from 'tester/SchemaValidator'
import ChapterEvaluator from 'tester/ChapterEvaluator'
import { OpenSearchHttpClient } from 'OpenSearchHttpClient'
import { type OpenAPIV3 } from 'openapi-types'
import TestRunner from '../../src/tester/TestRunner'
import { NoOpResultLogger, type ResultLogger } from '../../src/tester/ResultLogger'
import TestRunner from 'tester/TestRunner'
import { NoOpResultLogger, type ResultLogger } from 'tester/ResultLogger'
import * as process from 'node:process'

export function construct_tester_components (spec_path: string): {
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/tester/integ/TestRunner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { construct_tester_components, flatten_errors, load_expected_evaluation } from '../helpers'
import { type StoryEvaluation } from '../../../src/tester/types/eval.types'
import { type StoryEvaluation } from 'tester/types/eval.types'

test('stories folder', async () => {
const { test_runner } = construct_tester_components('tools/tests/tester/fixtures/specs/indices_excerpt.yaml')
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/tester/start.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { spawnSync } from 'child_process'
import * as ansi from '../../src/tester/Ansi'
import * as ansi from 'tester/Ansi'
import * as path from 'path'

const spec = (args: string[]): any => {
Expand Down

0 comments on commit e6272d5

Please sign in to comment.