Skip to content

Commit

Permalink
tsconfig tests: use consistent case
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jul 20, 2023
1 parent 10826b7 commit 60004e7
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 276 deletions.
84 changes: 42 additions & 42 deletions internal/bundler_tests/bundler_tsconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var tsconfig_suite = suite{
name: "tsconfig",
}

func TestTsConfigPaths(t *testing.T) {
func TestTsconfigPaths(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.ts": `
Expand Down Expand Up @@ -183,7 +183,7 @@ func TestTsConfigPaths(t *testing.T) {
})
}

func TestTsConfigPathsNoBaseURL(t *testing.T) {
func TestTsconfigPathsNoBaseURL(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.ts": `
Expand Down Expand Up @@ -323,7 +323,7 @@ func TestTsConfigPathsNoBaseURL(t *testing.T) {
})
}

func TestTsConfigBadPathsNoBaseURL(t *testing.T) {
func TestTsconfigBadPathsNoBaseURL(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.ts": `
Expand Down Expand Up @@ -381,7 +381,7 @@ Users/user/project/tsconfig.json: WARNING: Non-relative path "http://bad" is not
}

// https://github.com/evanw/esbuild/issues/913
func TestTsConfigPathsOverriddenBaseURL(t *testing.T) {
func TestTsconfigPathsOverriddenBaseURL(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand Down Expand Up @@ -417,7 +417,7 @@ func TestTsConfigPathsOverriddenBaseURL(t *testing.T) {
})
}

func TestTsConfigPathsOverriddenBaseURLDifferentDir(t *testing.T) {
func TestTsconfigPathsOverriddenBaseURLDifferentDir(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand Down Expand Up @@ -453,7 +453,7 @@ func TestTsConfigPathsOverriddenBaseURLDifferentDir(t *testing.T) {
})
}

func TestTsConfigPathsMissingBaseURL(t *testing.T) {
func TestTsconfigPathsMissingBaseURL(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand Down Expand Up @@ -491,7 +491,7 @@ NOTE: You can mark the path "#/test" as external to exclude it from the bundle,
})
}

func TestTsConfigPathsTypeOnly(t *testing.T) {
func TestTsconfigPathsTypeOnly(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.ts": `
Expand Down Expand Up @@ -529,7 +529,7 @@ func TestTsConfigPathsTypeOnly(t *testing.T) {
})
}

func TestTsConfigJSX(t *testing.T) {
func TestTsconfigJSX(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.tsx": `
Expand All @@ -552,7 +552,7 @@ func TestTsConfigJSX(t *testing.T) {
})
}

func TestTsConfigNestedJSX(t *testing.T) {
func TestTsconfigNestedJSX(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.ts": `
Expand Down Expand Up @@ -601,7 +601,7 @@ func TestTsConfigNestedJSX(t *testing.T) {
})
}

func TestTsConfigPreserveJSX(t *testing.T) {
func TestTsconfigPreserveJSX(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.tsx": `
Expand All @@ -623,7 +623,7 @@ func TestTsConfigPreserveJSX(t *testing.T) {
})
}

func TestTsConfigPreserveJSXAutomatic(t *testing.T) {
func TestTsconfigPreserveJSXAutomatic(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.tsx": `
Expand Down Expand Up @@ -653,7 +653,7 @@ func TestTsConfigPreserveJSXAutomatic(t *testing.T) {
})
}

func TestTsConfigReactJSX(t *testing.T) {
func TestTsconfigReactJSX(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.tsx": `
Expand Down Expand Up @@ -681,7 +681,7 @@ func TestTsConfigReactJSX(t *testing.T) {
})
}

func TestTsConfigReactJSXDev(t *testing.T) {
func TestTsconfigReactJSXDev(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.tsx": `
Expand All @@ -708,7 +708,7 @@ func TestTsConfigReactJSXDev(t *testing.T) {
})
}

func TestTsConfigReactJSXWithDevInMainConfig(t *testing.T) {
func TestTsconfigReactJSXWithDevInMainConfig(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/entry.tsx": `
Expand Down Expand Up @@ -1501,7 +1501,7 @@ func TestTsconfigIgnoredTargetSilent(t *testing.T) {
})
}

func TestTsConfigNoBaseURLExtendsPaths(t *testing.T) {
func TestTsconfigNoBaseURLExtendsPaths(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand Down Expand Up @@ -1534,7 +1534,7 @@ NOTE: You can mark the path "foo" as external to exclude it from the bundle, whi
})
}

func TestTsConfigBaseURLExtendsPaths(t *testing.T) {
func TestTsconfigBaseURLExtendsPaths(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand Down Expand Up @@ -1566,7 +1566,7 @@ func TestTsConfigBaseURLExtendsPaths(t *testing.T) {
})
}

func TestTsConfigPathsExtendsBaseURL(t *testing.T) {
func TestTsconfigPathsExtendsBaseURL(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand Down Expand Up @@ -1598,7 +1598,7 @@ func TestTsConfigPathsExtendsBaseURL(t *testing.T) {
})
}

func TestTsConfigPathsInNodeModulesIssue2386(t *testing.T) {
func TestTsconfigPathsInNodeModulesIssue2386(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/main.js": `
Expand Down Expand Up @@ -1645,7 +1645,7 @@ func TestTsConfigPathsInNodeModulesIssue2386(t *testing.T) {
})
}

func TestTsConfigWithStatementAlwaysStrictFalse(t *testing.T) {
func TestTsconfigWithStatementAlwaysStrictFalse(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand All @@ -1666,7 +1666,7 @@ func TestTsConfigWithStatementAlwaysStrictFalse(t *testing.T) {
})
}

func TestTsConfigWithStatementAlwaysStrictTrue(t *testing.T) {
func TestTsconfigWithStatementAlwaysStrictTrue(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand All @@ -1689,7 +1689,7 @@ Users/user/project/tsconfig.json: NOTE: TypeScript's "alwaysStrict" setting was
})
}

func TestTsConfigWithStatementStrictFalse(t *testing.T) {
func TestTsconfigWithStatementStrictFalse(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand All @@ -1710,7 +1710,7 @@ func TestTsConfigWithStatementStrictFalse(t *testing.T) {
})
}

func TestTsConfigWithStatementStrictTrue(t *testing.T) {
func TestTsconfigWithStatementStrictTrue(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand All @@ -1733,7 +1733,7 @@ Users/user/project/tsconfig.json: NOTE: TypeScript's "strict" setting was enable
})
}

func TestTsConfigWithStatementStrictFalseAlwaysStrictTrue(t *testing.T) {
func TestTsconfigWithStatementStrictFalseAlwaysStrictTrue(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand All @@ -1757,7 +1757,7 @@ Users/user/project/tsconfig.json: NOTE: TypeScript's "alwaysStrict" setting was
})
}

func TestTsConfigWithStatementStrictTrueAlwaysStrictFalse(t *testing.T) {
func TestTsconfigWithStatementStrictTrueAlwaysStrictFalse(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/entry.ts": `
Expand All @@ -1779,7 +1779,7 @@ func TestTsConfigWithStatementStrictTrueAlwaysStrictFalse(t *testing.T) {
})
}

func TestTsConfigAlwaysStrictTrueEmitDirectivePassThrough(t *testing.T) {
func TestTsconfigAlwaysStrictTrueEmitDirectivePassThrough(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/implicit.ts": `
Expand All @@ -1806,7 +1806,7 @@ func TestTsConfigAlwaysStrictTrueEmitDirectivePassThrough(t *testing.T) {
})
}

func TestTsConfigAlwaysStrictTrueEmitDirectiveFormat(t *testing.T) {
func TestTsconfigAlwaysStrictTrueEmitDirectiveFormat(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/implicit.ts": `
Expand All @@ -1833,7 +1833,7 @@ func TestTsConfigAlwaysStrictTrueEmitDirectiveFormat(t *testing.T) {
})
}

func TestTsConfigAlwaysStrictTrueEmitDirectiveBundleIIFE(t *testing.T) {
func TestTsconfigAlwaysStrictTrueEmitDirectiveBundleIIFE(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/implicit.ts": `
Expand Down Expand Up @@ -1861,7 +1861,7 @@ func TestTsConfigAlwaysStrictTrueEmitDirectiveBundleIIFE(t *testing.T) {
})
}

func TestTsConfigAlwaysStrictTrueEmitDirectiveBundleCJS(t *testing.T) {
func TestTsconfigAlwaysStrictTrueEmitDirectiveBundleCJS(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/implicit.ts": `
Expand Down Expand Up @@ -1889,7 +1889,7 @@ func TestTsConfigAlwaysStrictTrueEmitDirectiveBundleCJS(t *testing.T) {
})
}

func TestTsConfigAlwaysStrictTrueEmitDirectiveBundleESM(t *testing.T) {
func TestTsconfigAlwaysStrictTrueEmitDirectiveBundleESM(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/implicit.ts": `
Expand Down Expand Up @@ -1917,7 +1917,7 @@ func TestTsConfigAlwaysStrictTrueEmitDirectiveBundleESM(t *testing.T) {
})
}

func TestTsConfigExtendsDotWithoutSlash(t *testing.T) {
func TestTsconfigExtendsDotWithoutSlash(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand All @@ -1942,7 +1942,7 @@ func TestTsConfigExtendsDotWithoutSlash(t *testing.T) {
})
}

func TestTsConfigExtendsDotDotWithoutSlash(t *testing.T) {
func TestTsconfigExtendsDotDotWithoutSlash(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand All @@ -1966,7 +1966,7 @@ func TestTsConfigExtendsDotDotWithoutSlash(t *testing.T) {
})
}

func TestTsConfigExtendsDotWithSlash(t *testing.T) {
func TestTsconfigExtendsDotWithSlash(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand All @@ -1993,7 +1993,7 @@ func TestTsConfigExtendsDotWithSlash(t *testing.T) {
})
}

func TestTsConfigExtendsDotDotWithSlash(t *testing.T) {
func TestTsconfigExtendsDotDotWithSlash(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand All @@ -2019,7 +2019,7 @@ func TestTsConfigExtendsDotDotWithSlash(t *testing.T) {
})
}

func TestTsConfigExtendsWithExports(t *testing.T) {
func TestTsconfigExtendsWithExports(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand Down Expand Up @@ -2048,7 +2048,7 @@ func TestTsConfigExtendsWithExports(t *testing.T) {
})
}

func TestTsConfigExtendsWithExportsStar(t *testing.T) {
func TestTsconfigExtendsWithExportsStar(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand Down Expand Up @@ -2077,7 +2077,7 @@ func TestTsConfigExtendsWithExportsStar(t *testing.T) {
})
}

func TestTsConfigExtendsWithExportsStarTrailing(t *testing.T) {
func TestTsconfigExtendsWithExportsStarTrailing(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand Down Expand Up @@ -2106,7 +2106,7 @@ func TestTsConfigExtendsWithExportsStarTrailing(t *testing.T) {
})
}

func TestTsConfigExtendsWithExportsRequire(t *testing.T) {
func TestTsconfigExtendsWithExportsRequire(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand Down Expand Up @@ -2141,7 +2141,7 @@ func TestTsConfigExtendsWithExportsRequire(t *testing.T) {
})
}

func TestTsConfigVerbatimModuleSyntaxTrue(t *testing.T) {
func TestTsconfigVerbatimModuleSyntaxTrue(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.ts": `
Expand All @@ -2167,7 +2167,7 @@ func TestTsConfigVerbatimModuleSyntaxTrue(t *testing.T) {
})
}

func TestTsConfigVerbatimModuleSyntaxFalse(t *testing.T) {
func TestTsconfigVerbatimModuleSyntaxFalse(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.ts": `
Expand All @@ -2193,7 +2193,7 @@ func TestTsConfigVerbatimModuleSyntaxFalse(t *testing.T) {
})
}

func TestTsConfigExtendsArray(t *testing.T) {
func TestTsconfigExtendsArray(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand Down Expand Up @@ -2226,7 +2226,7 @@ func TestTsConfigExtendsArray(t *testing.T) {
})
}

func TestTsConfigExtendsArrayNested(t *testing.T) {
func TestTsconfigExtendsArrayNested(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.tsx": `
Expand Down Expand Up @@ -2280,7 +2280,7 @@ func TestTsConfigExtendsArrayNested(t *testing.T) {
})
}

func TestTsConfigIgnoreInsideNodeModules(t *testing.T) {
func TestTsconfigIgnoreInsideNodeModules(t *testing.T) {
tsconfig_suite.expectBundled(t, bundled{
files: map[string]string{
"/Users/user/project/src/main.ts": `
Expand Down

0 comments on commit 60004e7

Please sign in to comment.