Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-line comments existing as the final line for imported (typescript) files results in a syntax error #1730

Closed
samueltlg opened this issue Jun 14, 2020 · 3 comments

Comments

@samueltlg
Copy link

samueltlg commented Jun 14, 2020

馃悰 Bug Report

UPDATE: The issue is in fact just for single-line comments existing as the final line for imported files. For empty lines, or multi-line comments, there is no issue. (and the #region/endregion comments have nothing to do with this issue, as mentioned below)

When running a test which imports from other files, if these other files have an '//#endregion ..' (Update: Single-line) comment as the last line of the imported file, an import-related syntax error is thrown:

WindowsTerminal_ytgdanBP9s

(Whilst running the following simple test file):

Code_37JGQbXYRp

Removal of the final line, or appending an additional (empty) line to the imported file, resolves the issue.

This could instead be an issue with jest. Running the file (with tests commented out) with ts-node results in no issues.

I thought that this issue was particularly worth bring up, because, I spent a couple of hours trying to find out what the issue was with regards to the syntax error. Wasn't expecting a final-line (file) single-line comment to be the issue. As mentioned below, it does not result typically, when, for example, commenting out the test/describe blocks and running the file with ts-node (a typical compilation to ES5/6 ?). So perhaps the issue is with the particular way ts-jest uses typescript to compile to javascript, or less likely, jest itself.

To Reproduce

Run a test which imports from another typescript file, with '//#region' and '//#endregion' comments, with an '#endregion' comment appearing on the final line of the imported file.

UPDATE: Now just single-line comments, instead ^

Code_llUcbpjykJ

Expected behavior

No syntax error

Jest-related Configs

Code_HZ45IoPUey

Code_2YbhlfuPSY

envinfo

System:
    OS: Windows 10 Version  10.0.19041 Build 19041


Npm packages:
    jest: 26.0.1
    ts-jest: 26.1.0
    typescript: 3.9.5

Problem also existed with jest 24.x.x and ts-jest 24.x.x

Debug log:

# content of ts-jest.log :
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"26.1.0"},"message":"creating jest presets not handling JavaScript files","sequence":1,"time":"2020-06-14T22:40:10.796Z"}
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"26.1.0"},"message":"creating Importer singleton","sequence":2,"time":"2020-06-14T22:40:14.034Z"}
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"26.1.0"},"message":"creating jest presets not handling JavaScript files","sequence":3,"time":"2020-06-14T22:40:14.046Z"}
{"context":{"actualVersion":"26.0.1","expectedVersion":">=26 <27","logLevel":20,"namespace":"versions","package":"ts-jest","version":"26.1.0"},"message":"checking version of jest: OK","sequence":4,"time":"2020-06-14T22:40:14.048Z"}
{"context":{"baseOptions":{},"logLevel":20,"namespace":"jest-transformer","package":"ts-jest","transformerId":1,"version":"26.1.0"},"message":"created new transformer","sequence":5,"time":"2020-06-14T22:40:14.048Z"}
{"context":{"fileName":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/tempTest.test.ts","logLevel":20,"namespace":"jest-transformer","package":"ts-jest","transformOptions":{"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"coveragePathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"cwd":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extraGlobals":[],"forceCoverageMatch":[],"globals":{"ts-jest":{"isolatedModules":true,"tsConfig":"tsconfig.test.json"}},"haste":{"computeSha1":false,"throwOnModuleCollision":false},"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","json","jsx","ts","tsx","node"],"moduleNameMapper":[["Source/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/$1"],["Typings/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/$1"],["Schemas/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/schemas/$1"],["Config/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/$1"],["AppConfig/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/app/$1"],["Constants/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/const/$1"],["Util/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/$1"],["Classes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/$1"],["CustomErrors/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/$1"],["QuestionData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/$1"],["QuestionDataTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/$1"],["QuestionDataClasses/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/class/$1"],["TokenTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/$1"],["ReferenceObjectTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/$1"],["QuestionSetData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/data/question-sets/$1"],["QuestionSetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-set/$1"],["WorksheetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/$1"],["WorksheetProcessingServicesTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet-processing-services/$1"],["Worksheet/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet/$1"],["WorksheetProcessingServices/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/$1"],["WorksheetEvents/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-events/$1"],["SchemaTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/schemas/$1"]],"modulePathIgnorePatterns":[],"name":"7440a51c1fd61ea6984288bd95bb78c5","prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","roots":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source"],"runner":"jest-runner","setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"snapshotSerializers":[],"testEnvironment":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"testRegex":[],"testRunner":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-jasmine2/build/index.js","testURL":"http://localhost","timers":"real","transform":[["^.+\\.tsx?$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/ts-jest/dist/index.js",{}]],"transformIgnorePatterns":["/node_modules/(?!MODULE_NAME_HERE).+\\.js$"],"watchPathIgnorePatterns":[]},"instrument":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","supportsDynamicImport":false,"supportsStaticESM":false},"transformerId":1,"version":"26.1.0"},"message":"computing cache key for /mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/tempTest.test.ts","sequence":6,"time":"2020-06-14T22:40:14.050Z"}
{"context":{"logLevel":30,"namespace":"jest-transformer","package":"ts-jest","transformerId":1,"version":"26.1.0"},"message":"no matching config-set found, creating a new one","sequence":7,"time":"2020-06-14T22:40:14.050Z"}
{"context":{"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"coveragePathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"cwd":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extraGlobals":[],"forceCoverageMatch":[],"globals":{"ts-jest":{"isolatedModules":true,"tsConfig":"tsconfig.test.json"}},"haste":{"computeSha1":false,"throwOnModuleCollision":false},"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","json","jsx","ts","tsx","node"],"moduleNameMapper":[["Source/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/$1"],["Typings/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/$1"],["Schemas/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/schemas/$1"],["Config/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/$1"],["AppConfig/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/app/$1"],["Constants/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/const/$1"],["Util/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/$1"],["Classes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/$1"],["CustomErrors/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/$1"],["QuestionData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/$1"],["QuestionDataTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/$1"],["QuestionDataClasses/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/class/$1"],["TokenTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/$1"],["ReferenceObjectTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/$1"],["QuestionSetData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/data/question-sets/$1"],["QuestionSetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-set/$1"],["WorksheetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/$1"],["WorksheetProcessingServicesTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet-processing-services/$1"],["Worksheet/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet/$1"],["WorksheetProcessingServices/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/$1"],["WorksheetEvents/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-events/$1"],["SchemaTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/schemas/$1"]],"modulePathIgnorePatterns":[],"name":"7440a51c1fd61ea6984288bd95bb78c5","prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","roots":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source"],"runner":"jest-runner","setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"snapshotSerializers":[],"testEnvironment":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"testRegex":[],"testRunner":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-jasmine2/build/index.js","testURL":"http://localhost","timers":"real","transform":[["^.+\\.tsx?$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/ts-jest/dist/index.js",{}]],"transformIgnorePatterns":["/node_modules/(?!MODULE_NAME_HERE).+\\.js$"],"watchPathIgnorePatterns":[]},"logLevel":20,"namespace":"backports","package":"ts-jest","transformerId":1,"version":"26.1.0"},"message":"backporting config","sequence":8,"time":"2020-06-14T22:40:14.050Z"}
{"context":{"jestConfig":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"coveragePathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"cwd":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extraGlobals":[],"forceCoverageMatch":[],"globals":{"ts-jest":{"isolatedModules":true,"tsConfig":"tsconfig.test.json"}},"haste":{"computeSha1":false,"throwOnModuleCollision":false},"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","json","jsx","ts","tsx","node"],"moduleNameMapper":[["Source/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/$1"],["Typings/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/$1"],["Schemas/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/schemas/$1"],["Config/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/$1"],["AppConfig/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/app/$1"],["Constants/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/const/$1"],["Util/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/$1"],["Classes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/$1"],["CustomErrors/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/$1"],["QuestionData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/$1"],["QuestionDataTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/$1"],["QuestionDataClasses/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/class/$1"],["TokenTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/$1"],["ReferenceObjectTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/$1"],["QuestionSetData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/data/question-sets/$1"],["QuestionSetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-set/$1"],["WorksheetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/$1"],["WorksheetProcessingServicesTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet-processing-services/$1"],["Worksheet/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet/$1"],["WorksheetProcessingServices/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/$1"],["WorksheetEvents/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-events/$1"],["SchemaTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/schemas/$1"]],"modulePathIgnorePatterns":[],"name":"7440a51c1fd61ea6984288bd95bb78c5","prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","roots":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source"],"runner":"jest-runner","setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"snapshotSerializers":[],"testEnvironment":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"testRegex":[],"testRunner":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-jasmine2/build/index.js","testURL":"http://localhost","timers":"real","transform":[["^.+\\.tsx?$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/ts-jest/dist/index.js",{}]],"transformIgnorePatterns":["/node_modules/(?!MODULE_NAME_HERE).+\\.js$"],"watchPathIgnorePatterns":[]},"logLevel":20,"namespace":"config","package":"ts-jest","transformerId":1,"version":"26.1.0"},"message":"normalized jest config","sequence":9,"time":"2020-06-14T22:40:14.050Z"}
{"context":{"fromPath":"tsconfig.test.json","logLevel":20,"namespace":"config","package":"ts-jest","toPath":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/tsconfig.test.json","transformerId":1,"version":"26.1.0"},"message":"resolved path from tsconfig.test.json to /mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/tsconfig.test.json","sequence":10,"time":"2020-06-14T22:40:14.051Z"}
{"context":{"logLevel":20,"namespace":"config","package":"ts-jest","transformerId":1,"tsJestConfig":{"compiler":"typescript","diagnostics":{"ignoreCodes":[6059,18002,18003],"pretty":true,"throws":true},"isolatedModules":true,"packageJson":{"kind":"file"},"transformers":[],"tsConfig":{"kind":"file","value":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/tsconfig.test.json"}},"version":"26.1.0"},"message":"normalized ts-jest config","sequence":11,"time":"2020-06-14T22:40:14.051Z"}
{"context":{"logLevel":20,"namespace":"config","package":"ts-jest","transformerId":1,"version":"26.1.0"},"message":"babel is disabled","sequence":12,"time":"2020-06-14T22:40:14.096Z"}
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","requireResult":{"exists":true,"given":"typescript","path":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/typescript/lib/typescript.js"},"version":"26.1.0"},"message":"loaded module typescript","sequence":13,"time":"2020-06-14T22:40:14.097Z"}
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"26.1.0"},"message":"patching typescript","sequence":14,"time":"2020-06-14T22:40:14.097Z"}
{"context":{"actualVersion":"3.9.5","expectedVersion":">=3.8 <4","logLevel":20,"namespace":"versions","package":"ts-jest","version":"26.1.0"},"message":"checking version of typescript: OK","sequence":15,"time":"2020-06-14T22:40:14.097Z"}
{"context":{"logLevel":20,"namespace":"config","package":"ts-jest","transformerId":1,"tsConfigFileName":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/tsconfig.test.json","version":"26.1.0"},"message":"readTsConfig(): reading /mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/tsconfig.test.json","sequence":16,"time":"2020-06-14T22:40:14.097Z"}
{"context":{"logLevel":20,"namespace":"config","package":"ts-jest","transformerId":1,"tsconfig":{"compileOnSave":false,"configFileSpecs":{"includeSpecs":["./src/**/*","srv/public/QuestionSetEventReceiver.ts"],"validatedIncludeSpecs":["./src/**/*","srv/public/QuestionSetEventReceiver.ts"],"wildcardDirectories":{"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src":1}},"errors":[],"fileNames":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/mathjsInit.js","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings.d.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/TokenUtilities.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/ReferenceObjectProcessingError.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/ReferenceResolutionError.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/TermParsingError.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/WorksheetDataError.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/const/global.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/index_old.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/obtainMetaInformation.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/secondaryReferenceObjectStages.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/custom-functions/customFunctionMap.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/custom-functions/numeracyFunctions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/custom-functions/numeracy/generateRandomDecimal.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/custom-functions/numeracy/generateRandomInteger.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/custom-functions/numeracy/generateRandomInteger_multipleOf.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/custom-functions/numeracy/generateRandomInteger_notMultipleOf.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/old/framework_oldjs.js","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/old/framework_oldts.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/old/framework_oldts_02102018.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/old/termParser_old.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/const.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/obtainNestedConstructData.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/obtainNestedConstructData.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/simpleExport_deleteMe.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/termTokenizerRegExp.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/tempExport.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/tempTest.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_currentQuestionReferenceToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_customFunctionToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_generalSymbolToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_katexToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_monomialToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_multiTokenTerms-noExponentsOrNesting.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_numberToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_previousReferenceToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_testStrings.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/termRe_universalVariableToken.test.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/term-parser/const.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/term-parser/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/term-parser/termParser_old.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/term-parser/util.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/term-parser/class/TermBuilder.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/term-parser/class/TermParser.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/term-parser/class/TokenBuilder.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/reference-objects/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/reference-objects/class/ReferenceObjectConstructionUtilities.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-set/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-set/classes/ComponentQuestionSet/createOptionsApplicationStateMachine.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/old_question-sets/classes/ComponentQuestionSet/createOptionsApplicationStateMachine.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/old_question-sets/classes/ComponentQuestionSet/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/question-sets/ComponentQuestionSet.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/temp/mixinsTest2.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/temp/mixinsTest3.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/global.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/utilities.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/misc/commonQuestionDataAndSetOptions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/misc/componentQuestionSetOptions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/misc/questionDataOptions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/misc/workingQuestionSetOptions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/misc/worksheetQuestionSetOverrideOptions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/parsing.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/complex/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/primary/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/primary/monomial.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/primary/number.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/primary/term.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/computedCoefficient.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/computedDenominator.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/computedFraction.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/computedNumerator.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/customFunctionSRO.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/functionArgument.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/literalCoefficient.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/literalDecimal.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/literalDenominator.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/literalFraction.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/literalInteger.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/literalNumerator.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/mathematicalConstant.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/monomialTokenSRO.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/tokenExponent.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/tokenGroup.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/secondary/tokenGroupExponent.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/customFunctionToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/generalSymbolToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/katexToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/monomialToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/numberToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/universalVariableToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/referenceTokens/current.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/referenceTokens/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/referenceTokens/named.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/referenceTokens/previous.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/schemas/globalAppSettings.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/common.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/worksheetOptions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/worksheetRuntimeState.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/worksheetViewOptions.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet-processing-services/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/createRegExpStringFromObjectValueUnion.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/crypto.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/filterOutExponentTokens.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/generateArrayFromEnum.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/getAllFunctionLikeTokens.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/getAllTokensOfType.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/getReferenceTokenCaptureGroupIndexes.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/getReferenceTokenReferenceStage.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/isDynamicallySubstitutableToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/isFunctionLikeToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/isReferenceToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/isTermToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/isUniversalVariableToken.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/referencingUtilities.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/formatErrorMessage/formatMissingDataErrorMessage.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/formatErrorMessage/formatReferenceObjectProcessingErrorMessage.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/formatErrorMessage/formatReferenceResolutionErrorMessage.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/formatErrorMessage/formatTermParsingErrorMessage.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/formatErrorMessage/index.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet/class/Worksheet.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet/class/WorksheetRuntimeState.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-events/WorksheetEventReceiver.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/const.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/ComponentQuestionSetAgent.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/ComponentQuestionSetOptionsHelper.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/OptionsHelper.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/QuestionDataAgent.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/QuestionDataOptionsHelper.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/ReferenceObjectUtilities.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/ReferenceResolver.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/TermAgent.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/TokenProcessingStageDataGenerator.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/WorksheetProcessingServices.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/WorksheetRuntimeUtilities.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/ReferenceObjectProcessor/BeforeUniversalVariableSubstitutionStageDataGenerator.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/ReferenceObjectProcessor/ReferenceObjectProcessingStageDataConstructor.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/class/ReferenceObjectProcessor/ReferenceObjectProcessor.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/util/createQuestionStringHashDigest.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/util/optionHelperClassMixin.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/util/processingStageEventsMixin.ts","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/util/sharedWorksheetProcessingClassMixin.ts"],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"baseUrl":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","configFilePath":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/tsconfig.test.json","declaration":false,"esModuleInterop":true,"inlineSourceMap":false,"inlineSources":true,"jsx":2,"module":1,"noEmit":false,"noImplicitAny":true,"outDir":"$$ts-jest$$","paths":{"AppConfig/*":["etc/config/app/*"],"Classes/*":["src/class/*"],"Config/*":["etc/config/*"],"Constants/*":["src/const/*"],"CustomErrors/*":["src/class/errors/*"],"QuestionData/*":["src/construct-question-data/*"],"QuestionDataClasses/*":["src/construct-question-data/class/*"],"QuestionDataTypes/*":["src/typings/question-data/*"],"QuestionSetData/*":["data/question-sets/*"],"QuestionSetTypes/*":["src/typings/question-set/*"],"ReferenceObjectTypes/*":["src/typings/question-data/reference-objects/*"],"SchemaTypes/*":["src/typings/schemas/*"],"Schemas/*":["etc/schemas/*"],"Source/*":["src/*"],"TokenTypes/*":["src/typings/question-data/tokens/*"],"Typings/*":["src/typings/*"],"Util/*":["src/util/*"],"Worksheet/*":["src/worksheet/*"],"WorksheetEvents/*":["src/worksheet-events/*"],"WorksheetProcessingServices/*":["src/worksheet-processing-services/*"],"WorksheetProcessingServicesTypes/*":["src/typings/worksheet-processing-services/*"],"WorksheetTypes/*":["src/typings/worksheet/*"]},"removeComments":false,"sourceMap":true,"target":1},"raw":{"compileOnSave":false,"compilerOptions":{"allowJs":true,"allowSyntheticDefaultImports":true,"baseUrl":"./","esModuleInterop":true,"jsx":"react","noImplicitAny":true,"paths":{"AppConfig/*":["etc/config/app/*"],"Classes/*":["src/class/*"],"Config/*":["etc/config/*"],"Constants/*":["src/const/*"],"CustomErrors/*":["src/class/errors/*"],"QuestionData/*":["src/construct-question-data/*"],"QuestionDataClasses/*":["src/construct-question-data/class/*"],"QuestionDataTypes/*":["src/typings/question-data/*"],"QuestionSetData/*":["data/question-sets/*"],"QuestionSetTypes/*":["src/typings/question-set/*"],"ReferenceObjectTypes/*":["src/typings/question-data/reference-objects/*"],"SchemaTypes/*":["src/typings/schemas/*"],"Schemas/*":["etc/schemas/*"],"Source/*":["src/*"],"TokenTypes/*":["src/typings/question-data/tokens/*"],"Typings/*":["src/typings/*"],"Util/*":["src/util/*"],"Worksheet/*":["src/worksheet/*"],"WorksheetEvents/*":["src/worksheet-events/*"],"WorksheetProcessingServices/*":["src/worksheet-processing-services/*"],"WorksheetProcessingServicesTypes/*":["src/typings/worksheet-processing-services/*"],"WorksheetTypes/*":["src/typings/worksheet/*"]},"sourceMap":true,"target":"es5"},"include":["./src/**/*","srv/public/QuestionSetEventReceiver.ts"]},"typeAcquisition":{"enable":false,"exclude":[],"include":[]},"wildcardDirectories":{"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src":1}},"version":"26.1.0"},"message":"normalized typescript config","sequence":17,"time":"2020-06-14T22:40:14.128Z"}
{"context":{"fileName":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/tempExport.ts","logLevel":20,"namespace":"jest-transformer","package":"ts-jest","transformOptions":{"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"coveragePathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"cwd":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extraGlobals":[],"forceCoverageMatch":[],"globals":{"ts-jest":{"isolatedModules":true,"tsConfig":"tsconfig.test.json"}},"haste":{"computeSha1":false,"throwOnModuleCollision":false},"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","json","jsx","ts","tsx","node"],"moduleNameMapper":[["Source/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/$1"],["Typings/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/$1"],["Schemas/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/schemas/$1"],["Config/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/$1"],["AppConfig/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/app/$1"],["Constants/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/const/$1"],["Util/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/$1"],["Classes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/$1"],["CustomErrors/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/$1"],["QuestionData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/$1"],["QuestionDataTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/$1"],["QuestionDataClasses/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/class/$1"],["TokenTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/$1"],["ReferenceObjectTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/$1"],["QuestionSetData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/data/question-sets/$1"],["QuestionSetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-set/$1"],["WorksheetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/$1"],["WorksheetProcessingServicesTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet-processing-services/$1"],["Worksheet/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet/$1"],["WorksheetProcessingServices/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/$1"],["WorksheetEvents/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-events/$1"],["SchemaTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/schemas/$1"]],"modulePathIgnorePatterns":[],"name":"7440a51c1fd61ea6984288bd95bb78c5","prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","roots":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source"],"runner":"jest-runner","setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"snapshotSerializers":[],"testEnvironment":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"testRegex":[],"testRunner":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-jasmine2/build/index.js","testURL":"http://localhost","timers":"real","transform":[["^.+\\.tsx?$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/ts-jest/dist/index.js",{}]],"transformIgnorePatterns":["/node_modules/(?!MODULE_NAME_HERE).+\\.js$"],"watchPathIgnorePatterns":[]},"instrument":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","supportsDynamicImport":false,"supportsStaticESM":false},"transformerId":1,"version":"26.1.0"},"message":"computing cache key for /mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/tests/tempExport.ts","sequence":18,"time":"2020-06-14T22:40:14.135Z"}
{"context":{"fileName":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/simpleExport_deleteMe.ts","logLevel":20,"namespace":"jest-transformer","package":"ts-jest","transformOptions":{"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"coveragePathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"cwd":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extraGlobals":[],"forceCoverageMatch":[],"globals":{"ts-jest":{"isolatedModules":true,"tsConfig":"tsconfig.test.json"}},"haste":{"computeSha1":false,"throwOnModuleCollision":false},"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","json","jsx","ts","tsx","node"],"moduleNameMapper":[["Source/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/$1"],["Typings/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/$1"],["Schemas/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/schemas/$1"],["Config/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/$1"],["AppConfig/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/etc/config/app/$1"],["Constants/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/const/$1"],["Util/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/util/$1"],["Classes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/$1"],["CustomErrors/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/class/errors/$1"],["QuestionData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/$1"],["QuestionDataTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/$1"],["QuestionDataClasses/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/class/$1"],["TokenTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/tokens/$1"],["ReferenceObjectTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-data/reference-objects/$1"],["QuestionSetData/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/data/question-sets/$1"],["QuestionSetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/question-set/$1"],["WorksheetTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet/$1"],["WorksheetProcessingServicesTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/worksheet-processing-services/$1"],["Worksheet/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet/$1"],["WorksheetProcessingServices/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-processing-services/$1"],["WorksheetEvents/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/worksheet-events/$1"],["SchemaTypes/(.*)$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/typings/schemas/$1"]],"modulePathIgnorePatterns":[],"name":"7440a51c1fd61ea6984288bd95bb78c5","prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","roots":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source"],"runner":"jest-runner","setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"snapshotSerializers":[],"testEnvironment":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/js-tests/"],"testRegex":[],"testRunner":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/jest-jasmine2/build/index.js","testURL":"http://localhost","timers":"real","transform":[["^.+\\.tsx?$","/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/node_modules/ts-jest/dist/index.js",{}]],"transformIgnorePatterns":["/node_modules/(?!MODULE_NAME_HERE).+\\.js$"],"watchPathIgnorePatterns":[]},"instrument":false,"rootDir":"/mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source","supportsDynamicImport":false,"supportsStaticESM":false},"transformerId":1,"version":"26.1.0"},"message":"computing cache key for /mnt/c/Users/samge/Documents/Workspace/Github/mathsweb-source/src/construct-question-data/parsing/regexp/simpleExport_deleteMe.ts","sequence":19,"time":"2020-06-14T22:40:14.138Z"}


@samueltlg samueltlg added Bug Report Needs Repo Need a minimium repository to reproduce the problem Needs Triage labels Jun 14, 2020
@samueltlg samueltlg changed the title #endregion comments existing as the final line for imported (typescript) files results in a syntax error Single-line comments existing as the final line for imported (typescript) files results in a syntax error Jun 14, 2020
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jun 18, 2020

Hi @samueltlg , I guess tsc doesn鈥檛 throw error if you compile the file. Ts-node works similar to ts-jest, as well as very close to tsc. If ts-node and tsc don鈥檛 throw error, that means jest itself.

From the debug log I can see you use isolatedModules: true. This definitely filters out the scenario that errors come from typescript compiler.

@ahnpnl ahnpnl added 馃挰 Question and removed Bug Report Needs Repo Need a minimium repository to reproduce the problem Needs Triage labels Jun 18, 2020
@samueltlg
Copy link
Author

Hi @ahnpnl, thanks for having a think - I guess you are right. I will get round to confirming it is the case with javascript files, and then create an issue with jest and reference this one. Many thanks!

@ahnpnl
Copy link
Collaborator

ahnpnl commented Jul 1, 2020

close as fixed in babel/babel#11752

@ahnpnl ahnpnl closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants