Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ember-test-selectors custom adapter for 6.x
Browse files Browse the repository at this point in the history
mydea committed Jul 23, 2021
1 parent 719700f commit ff82379
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/compat/src/compat-adapters/ember-test-selectors.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,10 @@ import { forceIncludeModule } from '../compat-utils';

export default class extends V1Addon {
get packageMeta() {
if (this.addonInstance._stripTestSelectors) {
let version = this.addonInstance.pkg.version;
let majorVersion = parseInt(version.split('.')[0], 10);

if (majorVersion >= 6 || this.addonInstance._stripTestSelectors) {
return super.packageMeta;
} else {
return forceIncludeModule(super.packageMeta, './utils/bind-data-test-attributes');

0 comments on commit ff82379

Please sign in to comment.