Skip to content

Commit a3da024

Browse files
committed
feat(build): use dist/__tests__ in code examples and tests
1 parent 51cba45 commit a3da024

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/build/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To use `@loopback/build` for your package:
4040
"tslint": "lb-tslint",
4141
"tslint:fix": "npm run tslint -- --fix",
4242
"pretest": "npm run clean && npm run build",
43-
"test": "lb-mocha \"dist/test\"",
43+
"test": "lb-mocha \"dist/__tests__\"",
4444
"posttest": "npm run lint",
4545
"start": "npm run build && node .",
4646
"prepublishOnly": "npm run test"

packages/build/test/integration/scripts.integration.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ describe('mocha', function() {
380380

381381
it('loads built-in mocha.opts file', () => {
382382
var run = require('../../bin/run-mocha');
383-
var command = run(['node', 'bin/run-mocha', '"dist/test"'], true);
383+
var command = run(['node', 'bin/run-mocha', '"dist/__tests__"'], true);
384384
const builtInMochaOptsFile = path.join(
385385
__dirname,
386386
'../../config/mocha.opts',
@@ -394,7 +394,7 @@ describe('mocha', function() {
394394
it('honors --opts option', () => {
395395
var run = require('../../bin/run-mocha');
396396
var command = run(
397-
['node', 'bin/run-mocha', '--opts custom/mocha.opts', '"dist/test"'],
397+
['node', 'bin/run-mocha', '--opts custom/mocha.opts', '"dist/__tests__"'],
398398
true,
399399
);
400400
assert(
@@ -410,7 +410,7 @@ describe('mocha', function() {
410410

411411
fs.copyFileSync(buitInMochaOptsPath, destPath);
412412

413-
var command = run(['node', 'bin/run-mocha', '"dist/test"'], true);
413+
var command = run(['node', 'bin/run-mocha', '"dist/__tests__"'], true);
414414
assert(
415415
command.indexOf('--opts') === -1,
416416
'should skip built-in mocha.opts file when specific project file exist',

0 commit comments

Comments
 (0)