Skip to content

Commit

Permalink
Merge b161ab7 into 1e5b4eb
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremierobert-coveo authored Jul 23, 2019
2 parents 1e5b4eb + b161ab7 commit 182a396
Show file tree
Hide file tree
Showing 42 changed files with 4,669 additions and 898 deletions.
72 changes: 38 additions & 34 deletions config/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,48 @@ const webpackConfig = require('./webpack.config.karma.js');
const path = require('path');

var configuration = {
frameworks: ['jasmine'],
files: [
// Both CoveoJsSearch and CoveoJsSearchTests are included as externals, so you need include them in your testing environment.
{
pattern: '../node_modules/coveo-search-ui/bin/js/CoveoJsSearch.js',
watched: false
},
{
pattern: '../node_modules/coveo-search-ui-tests/bin/js/CoveoJsSearchTests.js',
watched: false
},
{ pattern: '../src/Index.ts' },
{ pattern: '../tests/**/*.spec.ts' }
],
preprocessors: {
// Builds both the components and the tests.
'../src/**/*.ts': ['webpack'],
'../tests/**/*.spec.ts': ['webpack']
frameworks: ['jasmine'],
files: [
// Both CoveoJsSearch and CoveoJsSearchTests are included as externals, so you need include them in your testing environment.
{
pattern: '../node_modules/coveo-search-ui/bin/js/CoveoJsSearch.js',
watched: false
},
// Required for Chrome, if you use it.
mime: { 'text/x-typescript': ['ts'] },
// Creates coverage files.
reporters: ['coverage-istanbul', 'spec'],
coverageIstanbulReporter: {
dir: path.resolve('./bin/coverage'),
reports: ['html', 'cobertura', 'json', 'lcov', 'text-summary'],
fixWebpackSourcePaths: true
{
pattern: '../node_modules/coveo-search-ui-tests/bin/js/CoveoJsSearchTests.js',
watched: false
},
webpack: webpackConfig,
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
{ pattern: '../src/Index.ts' },
{ pattern: '../tests/**/*.spec.ts' }
],
preprocessors: {
// Builds both the components and the tests.
'../src/**/*.ts': ['webpack'],
'../tests/**/*.spec.ts': ['webpack']
},
// Required for Chrome, if you use it.
mime: { 'text/x-typescript': ['ts'] },
// Creates coverage files.
reporters: ['coverage-istanbul', 'spec'],
coverageIstanbulReporter: {
dir: path.resolve('./bin/coverage'),
reports: ['html', 'cobertura', 'json', 'lcov', 'text-summary'],
fixWebpackSourcePaths: true
},
webpack: webpackConfig,
webpackMiddleware: {
stats: 'minimal',
logLevel: 'warn'
},
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
}
};

module.exports = function(config) {
config.set(configuration);
config.set(configuration);
};
5 changes: 5 additions & 0 deletions img/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions img/dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions img/duplicate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions img/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions img/view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 182a396

Please sign in to comment.