Skip to content

Commit

Permalink
Move test harness up to root
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Sep 25, 2024
1 parent f926b9b commit c9ab5b2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {javaScript, rewriteRunWithOptions} from './testHarness';
import {javaScript, rewriteRunWithOptions} from '../testHarness';

describe('expression statement mapping', () => {
test('literal with semicolon', () => {
Expand Down
2 changes: 1 addition & 1 deletion openrewrite/test/javascript/parser/literal.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as J from "../../../dist/java/tree";
import * as JS from "../../../dist/javascript/tree";
import {javaScript, rewriteRunWithOptions} from './testHarness';
import {javaScript, rewriteRunWithOptions} from '../testHarness';

describe('literal mapping', () => {
test('number', () => {
Expand Down
2 changes: 1 addition & 1 deletion openrewrite/test/javascript/parser/sourceFile.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {javaScript, rewriteRunWithOptions} from './testHarness';
import {javaScript, rewriteRunWithOptions} from '../testHarness';

describe('source file mapping', () => {
test('whitespace after last statement', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as J from "../../../dist/java/tree";
import {javaScript, rewriteRun, rewriteRunWithOptions} from './testHarness';
import {javaScript, rewriteRun, rewriteRunWithOptions} from '../testHarness';

describe('variable declaration mapping', () => {
test('const', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {Cursor, PrinterFactory, PrintOutputCapture, SourceFile} from '../../../dist/core';
import * as JS from "../../../dist/javascript/tree";
import {Cursor, PrinterFactory, PrintOutputCapture, SourceFile} from '../../dist/core';
import * as JS from "../../dist/javascript/tree";
import dedent from "dedent";
import {ReceiverContext, RemotePrinterFactory, RemotingContext, SenderContext} from "@openrewrite/rewrite-remote";
import * as deser from "@openrewrite/rewrite-remote/java/serializers";
import {JavaScriptReceiver, JavaScriptSender} from "@openrewrite/rewrite-remote/javascript";
import net from "net";
import {JavaScriptParser} from "../../../dist/javascript";
import {JavaScriptParser} from "../../dist/javascript";

export interface RewriteTestOptions {
normalizeIndent?: boolean
Expand Down

0 comments on commit c9ab5b2

Please sign in to comment.