Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const jestPackageJson =
class A {
#testerConfig;
constructor() {
let basePath: string | undefined =
let basePath =
this.#testerConfig.languageOptions.parserOptions?.tsconfigRootDir;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,33 @@ const jestPackageJson =
class A {
#testerConfig;
constructor() {
let basePath: string | undefined =
let basePath =
this.#testerConfig.languageOptions.parserOptions?.tsconfigRootDir;
}
}

==================== Output ====================
var longlonglonglonglonglong =
/*#__PURE__*/ _interopDefaultLegacy(aaaaaaaaaaaaaaa);
var short = /*#__PURE__*/ _interopDefaultLegacy(b);

const jestPackageJson =
// eslint-disable-next-line @typescript-eslint/no-require-imports
require(jestPath);

{
sourcemap =
/** @type {'inline' | 'hidden' | 'sourcemap'} */ (
process.env.WORKER_MODE
) || sourcemap;
}

class A {
#testerConfig;
constructor() {
let basePath =
this.#testerConfig.languageOptions.parserOptions?.tsconfigRootDir;
}
}

===================== End =====================
60 changes: 0 additions & 60 deletions crates/oxc_formatter/tests/fixtures/js/comments/yield.js

This file was deleted.

68 changes: 0 additions & 68 deletions crates/oxc_formatter/tests/fixtures/js/comments/yield.js.snap

This file was deleted.

21 changes: 21 additions & 0 deletions crates/oxc_formatter/tests/fixtures/ts/comments/assignments.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var longlonglonglonglonglong = /*#__PURE__*/_interopDefaultLegacy(aaaaaaaaaaaaaaa);
var short = /*#__PURE__*/_interopDefaultLegacy(b);

const jestPackageJson =
// eslint-disable-next-line @typescript-eslint/no-require-imports
require(jestPath);

{
sourcemap =
/** @type {'inline' | 'hidden' | 'sourcemap'} */ (
process.env.WORKER_MODE
) || sourcemap;
}

class A {
#testerConfig;
constructor() {
let basePath: string | undefined =
this.#testerConfig.languageOptions.parserOptions?.tsconfigRootDir;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
source: crates/oxc_formatter/tests/fixtures/mod.rs
---
==================== Input ====================
var longlonglonglonglonglong = /*#__PURE__*/_interopDefaultLegacy(aaaaaaaaaaaaaaa);
var short = /*#__PURE__*/_interopDefaultLegacy(b);

const jestPackageJson =
// eslint-disable-next-line @typescript-eslint/no-require-imports
require(jestPath);

{
sourcemap =
/** @type {'inline' | 'hidden' | 'sourcemap'} */ (
process.env.WORKER_MODE
) || sourcemap;
}

class A {
#testerConfig;
constructor() {
let basePath: string | undefined =
this.#testerConfig.languageOptions.parserOptions?.tsconfigRootDir;
}
}

==================== Output ====================
var longlonglonglonglonglong =
/*#__PURE__*/ _interopDefaultLegacy(aaaaaaaaaaaaaaa);
var short = /*#__PURE__*/ _interopDefaultLegacy(b);

const jestPackageJson =
// eslint-disable-next-line @typescript-eslint/no-require-imports
require(jestPath);

{
sourcemap =
/** @type {'inline' | 'hidden' | 'sourcemap'} */ (
process.env.WORKER_MODE
) || sourcemap;
}

class A {
#testerConfig;
constructor() {
let basePath: string | undefined =
this.#testerConfig.languageOptions.parserOptions?.tsconfigRootDir;
}
}

===================== End =====================
Loading