Skip to content

Commit

Permalink
chore(test): remove testScheduler-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
tmair committed May 7, 2023
1 parent 04cbee9 commit 410e651
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 209 deletions.
185 changes: 0 additions & 185 deletions spec/helpers/testScheduler-ui.ts

This file was deleted.

1 change: 0 additions & 1 deletion spec/support/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
require: ['ts-node/register', 'spec/support/mocha-path-mappings.js', 'spec/helpers/setup.ts'],
ui: ['spec/helpers/testScheduler-ui.ts'],
reporter: 'dot',
extensions: ['ts', 'js'],
timeout: 5000,
Expand Down
12 changes: 4 additions & 8 deletions spec/support/webpack.mocha.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var path = require('path');
var glob = require('glob');
var webpack = require('webpack');

var globPattern = 'spec-js/**/!(mocha.sauce.gruntfile|mocha.sauce.runner|webpack.mocha.config|painter|diagram-test-runner|polyfills|testScheduler-ui).js';
var globPattern = 'spec-js/**/!(mocha.sauce.gruntfile|mocha.sauce.runner|webpack.mocha.config|painter|diagram-test-runner|polyfills).js';
var files = _.map(glob.sync(globPattern), function (x) {
return path.resolve('./', x);
});
Expand All @@ -14,22 +14,18 @@ module.exports = {
stats: {
colors: true,
assets: false,
chunks: false
chunks: false,
},

entry: {
'browser.polyfills': './spec-js/helpers/polyfills.js',
'browser.testscheduler': './spec-js/helpers/testScheduler-ui.js',
'browser.spec': files
'browser.spec': files,
},

output: {
path: 'tmp/browser',
filename: '[name].js',
},

plugins: [
new webpack.optimize.CommonsChunkPlugin('browser.common.js'),
new webpack.IgnorePlugin(/^mocha$/)
]
plugins: [new webpack.optimize.CommonsChunkPlugin('browser.common.js'), new webpack.IgnorePlugin(/^mocha$/)],
};
23 changes: 8 additions & 15 deletions wallaby.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
module.exports = function (wallaby) {
return ({
files: [
'tsconfig.base.json',
'tsconfig.json',
'src/**/*.ts',
{ pattern: 'spec/helpers/!(*-spec).ts', instrument: false, load: true }
],
return {
files: ['tsconfig.base.json', 'tsconfig.json', 'src/**/*.ts', { pattern: 'spec/helpers/!(*-spec).ts', instrument: false, load: true }],

tests: ['spec/**/*-spec.ts'],

testFramework: {
type: 'mocha',
path: 'mocha'
path: 'mocha',
},

env: {
type: 'node'
type: 'node',
},

workers: { initial: 2, regular: 1 },

compilers: {
'**/*.ts?(x)': wallaby.compilers.typeScript({
module: 'commonjs',
target: 'esnext'
})
target: 'esnext',
}),
},

setup: function (w) {
Expand All @@ -45,10 +40,8 @@ module.exports = function (wallaby) {
delete global.asDiagram;
}

var mocha = wallaby.testFramework;
var path = require('path');
require(path.resolve(w.projectCacheDir, 'spec/helpers/setup'));
mocha.ui(path.resolve(w.projectCacheDir, 'spec/helpers/testScheduler-ui'));
}
});
},
};
};

0 comments on commit 410e651

Please sign in to comment.