You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: npm/webpack-batteries-included-preprocessor/package.json
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,15 @@
3
3
"version": "0.0.0-development",
4
4
"description": "Cypress preprocessor for bundling JavaScript via webpack with dependencies included and support for various ES features, TypeScript, and CoffeeScript",
it('errors when processing .ts file and typescript option is not set',()=>{
109
-
returnrun('ts_spec.ts')
110
-
.then(shouldntResolve)
111
-
.catch((err)=>{
112
-
expect(err.message).to.include(`You are attempting to run a TypeScript file, but do not have TypeScript installed. Ensure you have 'typescript' installed to enable TypeScript support`)
113
-
expect(err.message).to.include('ts_spec.ts')
114
-
})
108
+
it('errors when processing .ts file and typescript option is not set',async()=>{
109
+
try{
110
+
awaitrun('ts_spec.ts')
111
+
shouldntResolve()
112
+
}catch(err){
113
+
expect(err.message).toContain('You are attempting to run a TypeScript file, but do not have TypeScript installed. Ensure you have \'typescript\' installed to enable TypeScript support')
114
+
expect(err.message).toContain('ts_spec.ts')
115
+
}
115
116
})
116
117
117
-
it('errors when processing .tsx file and typescript option is not set',()=>{
118
-
returnrun('tsx_spec.tsx')
119
-
.then(shouldntResolve)
120
-
.catch((err)=>{
121
-
expect(err.message).to.include(`You are attempting to run a TypeScript file, but do not have TypeScript installed. Ensure you have 'typescript' installed to enable TypeScript support`)
122
-
expect(err.message).to.include('tsx_spec.tsx')
123
-
})
118
+
it('errors when processing .tsx file and typescript option is not set',async()=>{
119
+
try{
120
+
awaitrun('tsx_spec.tsx')
121
+
shouldntResolve()
122
+
}catch(err){
123
+
expect(err.message).toContain('You are attempting to run a TypeScript file, but do not have TypeScript installed. Ensure you have \'typescript\' installed to enable TypeScript support')
0 commit comments