fix(rome_js_formatter): add space after new token
MODIFY
Cargo.lock
Cargo.lock
@@ -753,9 +753,9 @@ dependencies = [
[[package]]
name = "insta"
-version = "1.11.0"
+version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da408b722765c64aad796c666b756aa1dda2a6c1b44f98797f2d8ea8f197746f"
+checksum = "689960f187c43c01650c805fb6bc6f55ab944499d86d4ffe9474ad78991d8e94"
dependencies = [
"console",
"globset",

MODIFY
crates/rome_js_formatter/Cargo.toml
crates/rome_js_formatter/Cargo.toml
@@ -19,7 +19,7 @@ rome_js_parser = { path = "../rome_js_parser" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tests_macros = { path = "../tests_macros" }
-insta = { version = "1.10.0", features = ["glob"] }
+insta = { version = "1.14.0", features = ["glob"] }
rome_diagnostics = { path = "../rome_diagnostics" }
parking_lot = "0.12.0"
similar = "2.1.0"

MODIFY
crates/rome_js_formatter/src/ts/auxiliary/construct_signature_type_member.rs
crates/rome_js_formatter/src/ts/auxiliary/construct_signature_type_member.rs
use crate::format_traits::FormatOptional;
use crate::utils::format_type_member_separator;
-use crate::{format_elements, Format, FormatElement, FormatNode, Formatter};
+use crate::{format_elements, space_token, Format, FormatElement, FormatNode, Formatter};
use rome_formatter::FormatResult;
use rome_js_syntax::{TsConstructSignatureTypeMember, TsConstructSignatureTypeMemberFields};
@@ -22,6 +22,7 @@ impl FormatNode for TsConstructSignatureTypeMember {
Ok(format_elements![
new,
+ space_token(),
type_parameters,
parameters,
type_annotation,

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/as/as.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/as/as.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: as.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/comments/interface.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/comments/interface.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: interface.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/comments/method_types.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/comments/method_types.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: method_types.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/compiler/functionOverloadsOnGenericArity1.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/compiler/functionOverloadsOnGenericArity1.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: functionOverloadsOnGenericArity1.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/compiler/privacyGloImport.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/compiler/privacyGloImport.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
-assertion_line: 119
+assertion_line: 175
expression: privacyGloImport.ts
-
---
# Input
```js

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/conformance/types/union/unionTypeConstructSignatures.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/conformance/types/union/unionTypeConstructSignatures.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: unionTypeConstructSignatures.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/custom/new/newKeyword.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/custom/new/newKeyword.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: newKeyword.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/custom/typeParameters/callAndConstructSignatureLong.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/custom/typeParameters/callAndConstructSignatureLong.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: callAndConstructSignatureLong.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/interface/ignore.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/interface/ignore.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: ignore.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/new/new-signature.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/new/new-signature.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: new-signature.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/prettier/typescript/webhost/webtsc.ts.snap
crates/rome_js_formatter/tests/specs/prettier/typescript/webhost/webtsc.ts.snap
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
+assertion_line: 175
expression: webtsc.ts
---
# Input

MODIFY
crates/rome_js_formatter/tests/specs/ts/expression/type_member.ts.snap
crates/rome_js_formatter/tests/specs/ts/expression/type_member.ts.snap
---
source: crates/rome_js_formatter/tests/spec_test.rs
+assertion_line: 242
expression: type_member.ts
---
# Input

fix(rome_js_formatter): add space after new token (#2507)