Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 3e74de1

Browse files
committed
Run tests per-package
1 parent 2cc69ce commit 3e74de1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+55
-38
lines changed

.gulp.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// https://github.com/gulpjs/gulp-cli#configuration
2+
module.exports = {
3+
flags: {
4+
require: '@fluentui/internal-tooling/babel/register',
5+
},
6+
}

.gulp.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

build/gulp/tasks/test-unit.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { parallel, series, task } from 'gulp'
22
import yargs from 'yargs'
33

4-
import sh from '../sh'
54
import jest, { JestPluginConfig } from '../plugins/gulp-jest'
65

76
const argv = yargs
@@ -19,14 +18,9 @@ const jestConfigFromArgv: Partial<JestPluginConfig> = {
1918
testFilePattern: argv.testFilePattern as string,
2019
}
2120

22-
task('test:jest:pre', () => sh('yarn satisfied'))
23-
2421
task(
2522
'test:jest:setup',
26-
series(
27-
'test:jest:pre',
28-
parallel('build:docs:component-info', 'build:docs:component-menu-behaviors'),
29-
),
23+
parallel('build:docs:component-info', 'build:docs:component-menu-behaviors'),
3024
)
3125

3226
task(

jest.config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"stats:save": "gulp stats:save",
3030
"satisfied": "satisfied --skip-invalid",
3131
"pretest": "yarn satisfied && yarn syncpack list-mismatches",
32-
"test": "gulp test",
32+
"test": "yarn satisfied && lerna run test --stream",
3333
"test:e2e": "gulp test:e2e",
3434
"test:e2e:serve": "gulp test:e2e:serve",
3535
"test:watch": "gulp test:watch",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.gulp')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = api => require('@fluentui/internal-tooling/babel')(api)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '../../gulpfile'

packages/accessibility/.gulp.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.gulp')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = api => require('@fluentui/internal-tooling/babel')(api)

0 commit comments

Comments
 (0)