Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit a4f0bde

Browse files
committed
fix failing tests
1 parent 2c61815 commit a4f0bde

File tree

25 files changed

+8
-347
lines changed

25 files changed

+8
-347
lines changed

rewrite-javascript-remote-server/src/main/resources/node-server/package.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
/**
2-
* Copyright 2025 the original author or authors.
3-
* <p>
4-
* Licensed under the Moderne Source Available License (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
* <p>
8-
* https://docs.moderne.io/licensing/moderne-source-available-license
9-
* <p>
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
161
{
172
"name": "@openrewrite/rewrite-bundled-starter",
183
"version": "1.0.0",

rewrite-javascript-remote-server/src/test/java/org/openrewrite/javascript/remote/InputParsingTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ public void testSingleProject() {
4747
client.parseInputs(
4848
Arrays.asList(
4949
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo/scripts/script.ts").getPath())),
50-
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo/packages/too-good/too-good.js").getPath()))
50+
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo/packages/too-good/too-good.js").getPath())),
51+
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/jsx-project/components/welcome.jsx").getPath())),
52+
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo/not-a-workspace/naw.js").getPath())),
53+
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo/not-a-workspace/naw2.ts").getPath())),
54+
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo/packages/upvote/src/js-target.js").getPath())),
55+
Parser.Input.fromFile(Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo/packages/upvote/src/ts-target.ts").getPath()))
5156
),
5257
Path.of(ClassLoader.getSystemResource("./__mocks__/monorepo").getPath()),
5358
ctx

rewrite-javascript-remote-server/src/test/java/org/openrewrite/javascript/remote/ProjectParsingTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.openrewrite.javascript.remote;
1818

19+
import org.junit.jupiter.api.Disabled;
1920
import org.junit.jupiter.api.Test;
2021
import org.openrewrite.Cursor;
2122
import org.openrewrite.InMemoryExecutionContext;

rewrite-javascript-remote-server/src/test/resources/__mocks__/jsx-project/package-lock.json

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rewrite-javascript-remote-server/src/test/resources/__mocks__/jsx-project/package.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
/**
2-
* Copyright 2025 the original author or authors.
3-
* <p>
4-
* Licensed under the Moderne Source Available License (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
* <p>
8-
* https://docs.moderne.io/licensing/moderne-source-available-license
9-
* <p>
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
161
{
172
"name": "jsx-project",
183
"version": "1.1.1"
Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
/*
2-
* Copyright 2025 the original author or authors.
3-
* <p>
4-
* Licensed under the Moderne Source Available License (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
* <p>
8-
* https://docs.moderne.io/licensing/moderne-source-available-license
9-
* <p>
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
161
console.log('naw.js');
Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
1-
/*
2-
* Copyright 2025 the original author or authors.
3-
* <p>
4-
* Licensed under the Moderne Source Available License (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
* <p>
8-
* https://docs.moderne.io/licensing/moderne-source-available-license
9-
* <p>
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
161
const naw2: string = 'naw2';
172
console.log(naw2);

rewrite-javascript-remote-server/src/test/resources/__mocks__/monorepo/not-a-workspace/package-lock.json

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rewrite-javascript-remote-server/src/test/resources/__mocks__/monorepo/not-a-workspace/package.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
/**
2-
* Copyright 2025 the original author or authors.
3-
* <p>
4-
* Licensed under the Moderne Source Available License (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
* <p>
8-
* https://docs.moderne.io/licensing/moderne-source-available-license
9-
* <p>
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
161
{
172
"name": "not-a-workspace",
183
"version": "3.2.1"

rewrite-javascript-remote-server/src/test/resources/__mocks__/monorepo/package-lock.json

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)