Skip to content

Commit

Permalink
Merge pull request #8 from lmiller1990/allow-no-unused-local
Browse files Browse the repository at this point in the history
fix: use loc.source instead of content to allow tsconfig strict options
  • Loading branch information
lmiller1990 committed Sep 21, 2020
2 parents 7a44efd + 67fa449 commit afdc8d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class VueTsJestTransformer extends TsJestTransformer implements Transformer {
if (descriptor.script || descriptor.scriptSetup) {
scriptSetupResult = compileScript(descriptor)
bindings = scriptSetupResult.bindings
output = super.process(scriptSetupResult.content, `${filePath}.ts`, jestConfig, transformOptions)
output = super.process(scriptSetupResult.loc.source, `${filePath}.ts`, jestConfig, transformOptions)
const template = compileTemplate({
filename: descriptor.filename,
source: descriptor.template!.content,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"module": "CommonJS",
"outDir": "dist",
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"importsNotUsedAsValues": "remove",
Expand Down

0 comments on commit afdc8d1

Please sign in to comment.