Skip to content

Commit 592eafc

Browse files
author
Alice
committed
separated test files from istanbul for correct coverage stats
1 parent 2901132 commit 592eafc

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/__tests__/build.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import setup from './setup';
23

34
const { stepFunctionsOfflinePlugin, StepFunctionsOfflinePlugin, serverless } = setup();

src/__tests__/enum.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import enums from '../enum';
23

34
describe('enum.js', () => {

src/__tests__/examples/firstLambda/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import Promise from 'bluebird';
23
console.log('Loading function One');
34

src/__tests__/setup.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import Serverless from 'serverless/lib/Serverless';
23
import CLI from 'serverless/lib/classes/CLI';
34
import { ServerlessWithError } from '../types';
@@ -18,8 +19,8 @@ export default function setup(): {
1819
},
1920
};
2021
return {
21-
serverless,
22+
serverless: serverless as any,
2223
StepFunctionsOfflinePlugin,
23-
stepFunctionsOfflinePlugin: new StepFunctionsOfflinePlugin(serverless, global['options']),
24+
stepFunctionsOfflinePlugin: new StepFunctionsOfflinePlugin(serverless as any, global['options']),
2425
};
2526
}

0 commit comments

Comments
 (0)