Skip to content

Commit 4442511

Browse files
committed
Fix tests
1 parent e4257b6 commit 4442511

26 files changed

Lines changed: 12685 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tmp
55
test/**/yarn.lock
66
test/**/*.js
77
test/**/*.js.map
8+
!**/fixtures/**/*
89
transforms/**/*.js
910
transforms/**/*.js.map
1011
helpers/**/*.js
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
'use strict';
2+
3+
module.exports = {
4+
root: true,
5+
parser: 'babel-eslint',
6+
parserOptions: {
7+
ecmaVersion: 2018,
8+
sourceType: 'module',
9+
ecmaFeatures: {
10+
legacyDecorators: true,
11+
},
12+
},
13+
plugins: ['ember'],
14+
extends: [
15+
'eslint:recommended',
16+
'plugin:ember/recommended',
17+
'plugin:prettier/recommended',
18+
],
19+
env: {
20+
browser: true,
21+
},
22+
rules: {},
23+
overrides: [
24+
// node files
25+
{
26+
files: [
27+
'./.eslintrc.js',
28+
'./.prettierrc.js',
29+
'./.template-lintrc.js',
30+
'./ember-cli-build.js',
31+
'./testem.js',
32+
'./blueprints/*/index.js',
33+
'./config/**/*.js',
34+
'./lib/*/index.js',
35+
'./server/**/*.js',
36+
],
37+
parserOptions: {
38+
sourceType: 'script',
39+
},
40+
env: {
41+
browser: false,
42+
node: true,
43+
},
44+
plugins: ['node'],
45+
extends: ['plugin:node/recommended'],
46+
rules: {
47+
// this can be removed once the following is fixed
48+
// https://github.com/mysticatea/eslint-plugin-node/issues/77
49+
'node/no-unpublished-require': 'off',
50+
},
51+
},
52+
{
53+
// Test files:
54+
files: ['tests/**/*-test.{js,ts}'],
55+
extends: ['plugin:qunit/recommended'],
56+
},
57+
],
58+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
singleQuote: true,
5+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: 'recommended',
5+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Application from '@ember/application';
2+
import Resolver from 'ember-resolver';
3+
import loadInitializers from 'ember-load-initializers';
4+
import config from 'pyckle/config/environment';
5+
6+
export default class App extends Application {
7+
modulePrefix = config.modulePrefix;
8+
podModulePrefix = config.podModulePrefix;
9+
Resolver = Resolver;
10+
}
11+
12+
loadInitializers(App, config.modulePrefix);

test/fixtures/3.28/input/app/components/.gitkeep

Whitespace-only changes.

test/fixtures/3.28/input/app/components/gherkyn.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{! template-lint-disable no-implicit-this }}
22
{{! template-lint-disable no-curly-component-invocation }}
3-
<h1>[{{this.property}}]</h1>
3+
<h1>[{{property}}]</h1>
44

55
<h1>[{{this.property}}]</h1>
66

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Component from '@glimmer/component';
2+
3+
export default class GherkynComponent extends Component {
4+
property = 'property-on-this';
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { helper } from '@ember/component/helper';
2+
3+
export default helper(function cucumbyr() {
4+
return 'helper-result';
5+
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import EmberRouter from '@ember/routing/router';
2+
import config from 'pyckle/config/environment';
3+
4+
export default class Router extends EmberRouter {
5+
location = config.locationType;
6+
rootURL = config.rootURL;
7+
}
8+
9+
Router.map(function () {});

0 commit comments

Comments
 (0)