Skip to content

Commit dc92625

Browse files
committed
Migrade node tests to scenarios
1 parent e33b15e commit dc92625

21 files changed

Lines changed: 83 additions & 231 deletions

eslint.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ export default [
214214
'**/babel.config.mjs',
215215
'**/babel.test.config.mjs',
216216
'node-tests/**/*.js',
217-
'tests/node/**/*.js',
218217
'blueprints/**/*.js',
219218
'bin/**/*.js',
220219
'bin/**/*.mjs',
@@ -243,7 +242,6 @@ export default [
243242
'**/babel.config.mjs',
244243
'**/babel.test.config.mjs',
245244
'node-tests/**/*.js',
246-
'tests/node/**/*.js',
247245
'blueprints/**/*.js',
248246
'bin/**/*.js',
249247
'bin/**/*.mjs',
@@ -284,7 +282,7 @@ export default [
284282
},
285283
},
286284
{
287-
files: ['tests/docs/**/*.js', 'tests/node/**/*.js'],
285+
files: ['tests/docs/**/*.js'],
288286

289287
languageOptions: {
290288
globals: {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"lint:format:fix": "prettier --write .",
5757
"test": "testem ci -f testem.js --host 127.0.0.1 --port 13141",
5858
"test:blueprints": "mocha node-tests/blueprints/**/*-test.js",
59-
"test:node": "qunit tests/node/**/*-test.js",
6059
"test:browserstack": "node bin/run-browserstack-tests.js",
6160
"test:wip": "vite build --mode development --minify false && testem ci",
6261
"type-check:internals": "tsc --noEmit",

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "ember-test-node-template",
3+
"version": "0.0.0",
4+
"private": true,
5+
"description": "Node-focused smoke test template for ember-source",
6+
"scripts": {
7+
"test:node": "qunit tests/node/**/*-test.js"
8+
},
9+
"dependencies": {
10+
"qunit": "^2.20.1",
11+
"simple-dom": "^1.4.0",
12+
"html-differ": "^1.4.0"
13+
}
14+
}

tests/node/app-boot-test.js renamed to smoke-tests/node-template/tests/node/app-boot-test.js

File renamed without changes.

tests/node/build-info-test.js renamed to smoke-tests/node-template/tests/node/build-info-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
'use strict';
22

3-
const { buildVersion, parseTagVersion, buildFromParts } = require('../../broccoli/build-info');
3+
const path = require('path');
4+
const emberSourceRoot = path.dirname(require.resolve('ember-source/package.json'));
5+
const { buildVersion, parseTagVersion, buildFromParts } = require(path.join(emberSourceRoot, 'broccoli', 'build-info'));
46

57
QUnit.module('buildVersion', () => {
68
flatMap(

tests/node/component-rendering-test.js renamed to smoke-tests/node-template/tests/node/component-rendering-test.js

File renamed without changes.

tests/node/fastboot-sandbox-test.js renamed to smoke-tests/node-template/tests/node/fastboot-sandbox-test.js

File renamed without changes.

tests/node/fixtures/project.js renamed to smoke-tests/node-template/tests/node/fixtures/project.js

File renamed without changes.

tests/node/helpers/assert-html-matches.js renamed to smoke-tests/node-template/tests/node/helpers/assert-html-matches.js

File renamed without changes.

0 commit comments

Comments
 (0)