11// Jest Snapshot v1, https://goo.gl/fbAQLP
22
3+ exports [` main outputs old server errors 1` ] = `
4+ [MockFunction] {
5+ " calls" : [
6+ [
7+ " <BASE_PATH>/ts_downloads/base/MockRepoOwner.MockRepoName.rawError.txt" ,
8+ " Req #123 - cursedCommand
9+ Some error . Could not do something .
10+ Maybe a Debug fail .
11+ at a (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :1 :1 )
12+ at b (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :2 :2 )
13+ at c (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :3 :3 )
14+ at d (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :4 :4 )
15+ at e (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :5 :5 )" ,
16+ ],
17+ [
18+ " <BASE_PATH>/ts_downloads/base/MockRepoOwner.MockRepoName.rawError.txt" ,
19+ " {" request_seq " :" 123 " ," command " :" cursedCommand " ," message " :" Some error . Could not do something . \\nMaybe a Debug fail .\\n at a (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :1 :1 )\\n at b (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :2 :2 )\\n at c (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :3 :3 )\\n at d (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :4 :4 )\\n at e (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :5 :5 )" }" ,
20+ ],
21+ [
22+ " <BASE_PATH>/RepoResults123/718e48b799650d4b66e5d80ad6bac7b9.results.txt" ,
23+ " <h2>Maybe a Debug fail.</h2>
24+
25+ \` \`\`
26+ Req #123 - cursedCommand
27+ at a (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:1:1)
28+ at b (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:2:2)
29+ at c (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:3:3)
30+ at d (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:4:4)
31+ at e (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:5:5)
32+ \`\`\`
33+
34+ <h4 >Affected repos</h4 >
35+ <details >
36+ <summary ><a href = " https://github.com/MockRepoOwner/MockRepoName" >MockRepoOwner/MockRepoName</a ></summary >
37+ Raw error text: <code >RepoResults123/MockRepoOwner.MockRepoName.rawError.txt</code > in the <a href = " PLACEHOLDER_ARTIFACT_FOLDER" >artifact folder</a > <br />
38+ Replay commands: <code >RepoResults123/MockRepoOwner.MockRepoName.replay.txt</code > in the <a href = " PLACEHOLDER_ARTIFACT_FOLDER" >artifact folder</a >
39+ <h4 >Last few requests</h4 >
40+
41+ \`\`\`json
42+ { " rootDirPlaceholder" :" @PROJECT_ROOT@" ," serverArgs" :[" --disableAutomaticTypingAcquisition" ]}
43+ { " seq" :1 ," type" :" request" ," command" :" configure" ," arguments" :{" preferences" :{" disableLineTextInReferences" :true ," includePackageJsonAutoImports" :" auto" ," includeCompletionsForImportStatements" :true ," includeCompletionsWithSnippetText" :true ," includeAutomaticOptionalChainCompletions" :true ," includeCompletionsWithInsertText" :true ," includeCompletionsWithClassMemberSnippets" :true ," allowIncompleteCompletions" :true ," includeCompletionsForModuleExports" :false }," watchOptions" :{" excludeDirectories" :[" **/node_modules" ]}}}
44+ { " seq" :2 ," type" :" request" ," command" :" updateOpen" ," arguments" :{" changedFiles" :[]," closedFiles" :[]," openFiles" :[{" file" :" @PROJECT_ROOT@/sample_repoName.config.js" ," projectRootPath" :" @PROJECT_ROOT@" }]}}
45+ { " seq" :3 ," type" :" request" ," command" :" cursedCommand" ," arguments" :{" file" :" @PROJECT_ROOT@/src/sampleTsFile.ts" ," line" :1 ," offset" :1 ," includeExternalModuleExports" :false ," triggerKind" :1 }}
46+ \`\`\`
47+
48+ <h4 >Repro steps</h4 >
49+
50+ \`\`\`bash
51+ #!/bin/bash
52+
53+ git clone https://github.com/MockRepoOwner/MockRepoName --recurse-submodules
54+ git -C "./MockRepoName" reset --hard 57b462387e88aa7e363af0daf867a5dc1e83a935
55+ # Install packages (exact steps are below, but it might be easier to follow the repo readme)
56+ npm --prefix "./dirA" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
57+ npm --prefix "./dirB/dirC" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
58+ npm --prefix "./dirD/dirE/dirF" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
59+ downloadUrl=$(curl -s "PLACEHOLDER_GETARTIFACTS_API?artifactName=RepoResults123& api-version=7.0" | jq -r ".resource.downloadUrl")
60+ wget -O RepoResults123.zip "$downloadUrl"
61+ unzip -p RepoResults123.zip RepoResults123/MockRepoOwner.MockRepoName.replay.txt > MockRepoOwner.MockRepoName.replay.txt
62+ npm install --no-save @typescript/server-replay
63+ \`\`\`
64+
65+ To run the repro:
66+ \`\`\`bash
67+ # \`npx tsreplay --help\` to learn about helpful switches for debugging, logging, etc.
68+ npx tsreplay ./MockRepoName ./MockRepoOwner.MockRepoName.replay.txt <PATH_TO_tsserver.js >
69+ \`\`\`
70+
71+ </details >
72+ ",
73+ {
74+ " encoding" : " utf-8" ,
75+ } ,
76+ ],
77+ [
78+ "<BASE_PATH >/RepoResults123/metadata.json",
79+ "{ " newTsResolvedVersion" :" 1.1.1" ," oldTsResolvedVersion" :" 0.0.0" ," statusCounts" :{" Detected interesting changes" :1 }} ",
80+ {
81+ " encoding" : " utf-8" ,
82+ } ,
83+ ],
84+ [
85+ "<BASE_PATH >/ts_downloads/base/MockRepoOwner.MockRepoName.rawError.txt",
86+ "{ " request_seq" :" 123" ," command" :" cursedCommand" ," message" :" Some error. Could not do something. \\ nMaybe a Debug fail.\\ n at a (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:1:1)\\ n at b (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:2:2)\\ n at c (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:3:3)\\ n at d (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:4:4)\\ n at e (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:5:5)" } ",
87+ ],
88+ [
89+ "<BASE_PATH >/RepoResults123/!718e48b799650d4b66e5d80ad6bac7b9.results.txt",
90+ "
91+ <details >
92+ <summary >New server no longer reports this error: Maybe a Debug fail.</summary >
93+
94+ \`\`\`
95+ Req #123 - cursedCommand
96+ at a (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:1:1)
97+ at b (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:2:2)
98+ at c (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:3:3)
99+ at d (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:4:4)
100+ at e (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:5:5)
101+ \`\`\`
102+
103+ <h4 >Affected repos</h4 >
104+ <details >
105+ <summary ><a href = " https://github.com/MockRepoOwner/MockRepoName" >MockRepoOwner/MockRepoName</a ></summary >
106+ Raw error text: <code >RepoResults123/MockRepoOwner.MockRepoName.rawError.txt</code > in the <a href = " PLACEHOLDER_ARTIFACT_FOLDER" >artifact folder</a > <br />
107+ Replay commands: <code >RepoResults123/MockRepoOwner.MockRepoName.replay.txt</code > in the <a href = " PLACEHOLDER_ARTIFACT_FOLDER" >artifact folder</a >
108+ <h4 >Last few requests</h4 >
109+
110+ \`\`\`json
111+ { " rootDirPlaceholder" :" @PROJECT_ROOT@" ," serverArgs" :[" --disableAutomaticTypingAcquisition" ]}
112+ { " seq" :1 ," type" :" request" ," command" :" configure" ," arguments" :{" preferences" :{" disableLineTextInReferences" :true ," includePackageJsonAutoImports" :" auto" ," includeCompletionsForImportStatements" :true ," includeCompletionsWithSnippetText" :true ," includeAutomaticOptionalChainCompletions" :true ," includeCompletionsWithInsertText" :true ," includeCompletionsWithClassMemberSnippets" :true ," allowIncompleteCompletions" :true ," includeCompletionsForModuleExports" :false }," watchOptions" :{" excludeDirectories" :[" **/node_modules" ]}}}
113+ { " seq" :2 ," type" :" request" ," command" :" updateOpen" ," arguments" :{" changedFiles" :[]," closedFiles" :[]," openFiles" :[{" file" :" @PROJECT_ROOT@/sample_repoName.config.js" ," projectRootPath" :" @PROJECT_ROOT@" }]}}
114+ { " seq" :3 ," type" :" request" ," command" :" cursedCommand" ," arguments" :{" file" :" @PROJECT_ROOT@/src/sampleTsFile.ts" ," line" :1 ," offset" :1 ," includeExternalModuleExports" :false ," triggerKind" :1 }}
115+ \`\`\`
116+
117+ <h4 >Repro steps</h4 >
118+
119+ \`\`\`bash
120+ #!/bin/bash
121+
122+ git clone https://github.com/MockRepoOwner/MockRepoName --recurse-submodules
123+ git -C "./MockRepoName" reset --hard 57b462387e88aa7e363af0daf867a5dc1e83a935
124+ # Install packages (exact steps are below, but it might be easier to follow the repo readme)
125+ npm --prefix "./dirA" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
126+ npm --prefix "./dirB/dirC" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
127+ npm --prefix "./dirD/dirE/dirF" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
128+ downloadUrl=$(curl -s "PLACEHOLDER_GETARTIFACTS_API?artifactName=RepoResults123& api-version=7.0" | jq -r ".resource.downloadUrl")
129+ wget -O RepoResults123.zip "$downloadUrl"
130+ unzip -p RepoResults123.zip RepoResults123/MockRepoOwner.MockRepoName.replay.txt > MockRepoOwner.MockRepoName.replay.txt
131+ npm install --no-save @typescript/server-replay
132+ \`\`\`
133+
134+ To run the repro:
135+ \`\`\`bash
136+ # \`npx tsreplay --help\` to learn about helpful switches for debugging, logging, etc.
137+ npx tsreplay ./MockRepoName ./MockRepoOwner.MockRepoName.replay.txt <PATH_TO_tsserver.js >
138+ \`\`\`
139+
140+ </details >
141+
142+ </details >
143+ ",
144+ {
145+ " encoding" : " utf-8" ,
146+ } ,
147+ ],
148+ [
149+ "<BASE_PATH >/RepoResults123/metadata.json",
150+ "{ " newTsResolvedVersion" :" 1.1.1" ," oldTsResolvedVersion" :" 0.0.0" ," statusCounts" :{" Detected interesting changes" :1 }} ",
151+ {
152+ " encoding" : " utf-8" ,
153+ } ,
154+ ],
155+ ],
156+ "results": [
157+ {
158+ " type" : " return" ,
159+ " value" : undefined ,
160+ } ,
161+ {
162+ " type" : " return" ,
163+ " value" : undefined ,
164+ } ,
165+ {
166+ " type" : " return" ,
167+ " value" : undefined ,
168+ } ,
169+ {
170+ " type" : " return" ,
171+ " value" : undefined ,
172+ } ,
173+ {
174+ " type" : " return" ,
175+ " value" : undefined ,
176+ } ,
177+ {
178+ " type" : " return" ,
179+ " value" : undefined ,
180+ } ,
181+ {
182+ " type" : " return" ,
183+ " value" : undefined ,
184+ } ,
185+ ],
186+ }
187+ `;
188+
3189exports[`main outputs server errors 1`] = `
4190[MockFunction] {
5191 " calls" : [
@@ -14,6 +200,10 @@ Maybe a Debug fail.
14200 at d (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :4 :4 )
15201 at e (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :5 :5 )" ,
16202 ],
203+ [
204+ " <BASE_PATH>/ts_downloads/base/MockRepoOwner.MockRepoName.rawError.txt" ,
205+ " {" request_seq " :" 123 " ," command " :" cursedCommand " ," message " :" Some error . Could not do something . \\nMaybe a Debug fail .\\n at a (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :1 :1 )\\n at b (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :2 :2 )\\n at c (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :3 :3 )\\n at d (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :4 :4 )\\n at e (/ mnt / vss / _work / 1 / s / typescript - 1.1 .1 / lib / typescript .js :5 :5 )" }" ,
206+ ],
17207 [
18208 " <BASE_PATH>/RepoResults123/718e48b799650d4b66e5d80ad6bac7b9.results.txt" ,
19209 " <h2>Maybe a Debug fail.</h2>
@@ -91,6 +281,10 @@ npx tsreplay ./MockRepoName ./MockRepoOwner.MockRepoName.replay.txt <PATH_TO_tss
91281 " type" : " return" ,
92282 " value" : undefined ,
93283 } ,
284+ {
285+ " type" : " return" ,
286+ " value" : undefined ,
287+ } ,
94288 ],
95289}
96290`;
0 commit comments