Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add updated test helpers as peer widen version #1069

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions .eslintrc.js

This file was deleted.

35 changes: 16 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test:ember
- uses: wyvox/action@v1
- run: pnpm lint
- run: pnpm test:ember
working-directory: test-app

floating-dependencies:
name: 'Floating Dependencies'
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- run: yarn install --no-lockfile
- run: yarn test:ember
- uses: wyvox/action@v1
with:
pnpm-args: '--no-lockfile'
- run: pnpm test:ember
working-directory: test-app

try-scenarios:
name: 'Try: ${{ matrix.ember-try-scenario }}'
Expand All @@ -58,12 +58,10 @@ jobs:
- embroider-optimized

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- name: install dependencies
run: yarn install --frozen-lockfile
- uses: wyvox/action@v1
- name: test
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
working-directory: test-app

types:
runs-on: ubuntu-latest
Expand All @@ -79,11 +77,10 @@ jobs:
- next

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v4
- name: install dependencies
run: yarn install --frozen-lockfile
- uses: wyvox/action@v1
- name: install TS version
run: yarn install --dev typescript@${{matrix.ts-version}}
run: pnpm install --save-dev typescript@${{matrix.ts-version}}
working-directory: addon
- name: test types
run: yarn test:types
run: pnpm test:types
working-directory: addon
44 changes: 22 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist/
/tmp/
/.eslintcache
dist/
tmp/
.eslintcache

# dependencies
/bower_components/
/node_modules/
bower_components/
node_modules/

# misc
/.env*
/.pnp*
/.sass-cache
/.eslintcache
/connect.lock
/coverage/
/libpeerconnection.log
/npm-debug.log*
/testem.log
/yarn-error.log
.env*
.pnp*
.sass-cache
.eslintcache
connect.lock
coverage/
libpeerconnection.log
npm-debug.log*
testem.log
yarn-error.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
.node_modules.ember-try/
bower.json.ember-try
npm-shrinkwrap.json.ember-try
package.json.ember-try
package-lock.json.ember-try
yarn.lock.ember-try

# broccoli-debug
/DEBUG/
DEBUG/
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions addon/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
'use strict';

module.exports = {
root: true,
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
babelOptions: {
root: __dirname,
},
},
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
env: {
browser: true,
},
rules: {
'ember/no-test-support-import': 'off',
'ember/no-classic-classes': 'off',
},
overrides: [
// node files
{
files: [
'./.eslintrc.js',
'./.prettierrc.js',
'./.template-lintrc.js',
'./addon-main.js',
],
parserOptions: {
sourceType: 'script',
},
env: {
browser: false,
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
},
],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions addon/addon-main.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

const { addonV1Shim } = require('@embroider/addon-shim');
module.exports = addonV1Shim(__dirname);
7 changes: 7 additions & 0 deletions addon/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"plugins": [
"@embroider/addon-dev/template-colocation-plugin",
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-proposal-class-properties"
]
}
117 changes: 117 additions & 0 deletions addon/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"name": "ember-qunit",
"version": "6.2.0",
"description": "QUnit helpers for testing Ember.js applications",
"keywords": [
"ember-addon"
],
"repository": {
"type": "git",
"url": "https://github.com/emberjs/ember-qunit.git"
},
"license": "MIT",
"contributors": [
"Stefan Penner",
"Ryan Florence",
"Robert Jackson",
"Dan Gebhardt",
"Steve Calvert"
],
"exports": {
".": "./dist/index.js",
"./*": "./dist/*.js",
"./addon-main.js": "./addon-main.cjs"
},
"files": [
"dist",
"addon-main.cjs"
],
"types": "types/index.d.ts",
"scripts": {
"build": "rollup --config",
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "rollup --config --watch",
"test:types": "tsc --noEmit --project types",
"prepack": "rollup --config"
},
"dependencies": {
"@embroider/addon-shim": "^1.0.0",
"ember-cli-test-loader": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/eslint-parser": "^7.19.1",
"@ember/test-helpers": "^2.9.3",
"@embroider/addon-dev": "^3.0.0",
"@glimmer/component": "^1.1.2",
"@rollup/plugin-babel": "^5.3.0",
"@tsconfig/ember": "^2.0.0",
"@types/qunit": "^2.19.4",
"@types/rsvp": "^4.0.4",
"concurrently": "^8.0.1",
"ember-cli-htmlbars": "^6.2.0",
"ember-resolver": "^10.1.0",
"ember-source": "^4.10.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-disable-features": "^0.1.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"expect-type": "^0.15.0",
"prettier": "^2.8.8",
"qunit": "^2.19.4",
"release-it": "^15.7.0",
"release-it-lerna-changelog": "^5.0.0",
"rollup": "^2.67.0",
"rollup-plugin-copy": "^3.4.0",
"typescript": "^4.9.5"
},
"peerDependencies": {
"@ember/test-helpers": "^2.9.3 || >= 3.0.0",
"ember-source": ">=3.28",
"qunit": "^2.13.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"changelog": {
"repo": "emberjs/ember-qunit",
"labels": {
"breaking": ":boom: Breaking Change",
"enhancement": ":rocket: Enhancement",
"bug": ":bug: Bug Fix",
"documentation": ":memo: Documentation",
"internal": ":house: Internal"
}
},
"ember": {
"edition": "octane"
},
"ember-addon": {
"version": 2,
"type": "addon",
"main": "addon-main.cjs",
"app-js": {}
},
"release-it": {
"plugins": {
"release-it-lerna-changelog": {
"infile": "CHANGELOG.md",
"launchEditor": true
}
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true,
"tokenRef": "GITHUB_AUTH"
}
},
"volta": {
"extends": "../package.json"
}
}
Loading