Skip to content

Commit

Permalink
fix(hooks): fix cucumber hooks overwrite
Browse files Browse the repository at this point in the history
cucumber package got renamed to @cucumber/cucumber, the hooks overwrite need to match that change
  • Loading branch information
Arthur Warnier committed Apr 28, 2021
1 parent 68d65c3 commit 8401669
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare module 'gherkin-testcafe' {
export default createTestCafe;
}

declare module 'cucumber' {
declare module '@cucumber/cucumber' {
import { t } from 'testcafe';

export interface DataTable {
Expand Down
9 changes: 5 additions & 4 deletions src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ module.exports = class GherkinTestcafeCompiler {
.after(ctx => this._runFeatureHooks(ctx, this.afterAllHooks))
.meta(
'tags',
`${gherkinDocument.feature.tags.length > 0
? gherkinDocument.feature.tags.map(tag => tag.name).reduce((acc, cur) => `${acc},${cur}`)
: ''
`${
gherkinDocument.feature.tags.length > 0
? gherkinDocument.feature.tags.map(tag => tag.name).reduce((acc, cur) => `${acc},${cur}`)
: ''
}`
);

Expand Down Expand Up @@ -361,5 +362,5 @@ module.exports = class GherkinTestcafeCompiler {
return ['.js', '.ts', '.feature'];
}

static cleanUp() { }
static cleanUp() {}
};

0 comments on commit 8401669

Please sign in to comment.