mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
Webui: bootstrap and test setup
This commit is contained in:
parent
246a680ee1
commit
de867e7a65
@ -8,6 +8,15 @@ module.exports = {
|
||||
'node_modules',
|
||||
'fixtures'
|
||||
],
|
||||
'testRegex': '(/test/unit.*\\.spec|test/functional.*\\.func)\\.js'
|
||||
'testRegex': '(/test/unit.*\\.spec|test/functional.*\\.func|/test/webui/.*\\.spec)\\.js',
|
||||
// 'testRegex': '(test/functional.*\\.func)\\.js'
|
||||
'setupFiles': [
|
||||
'./test/webui/global.js'
|
||||
],
|
||||
'modulePathIgnorePatterns': [
|
||||
'global.js'
|
||||
],
|
||||
'moduleNameMapper': {
|
||||
'\\.(scss)$': '<rootDir>/node_modules/jest-css-modules'
|
||||
}
|
||||
};
|
||||
|
@ -97,6 +97,7 @@
|
||||
"html-webpack-plugin": "2.30.1",
|
||||
"in-publish": "2.0.0",
|
||||
"jest": "^21.2.1",
|
||||
"jest-css-modules": "^1.1.0",
|
||||
"jest-serializer-enzyme": "^1.0.0",
|
||||
"localstorage-memory": "1.0.2",
|
||||
"node-sass": "4.7.2",
|
||||
|
5
test/webui/components/test.spec.js
Normal file
5
test/webui/components/test.spec.js
Normal file
@ -0,0 +1,5 @@
|
||||
describe('test', () => {
|
||||
it('add', () => {
|
||||
expect(2).toEqual(3);
|
||||
})
|
||||
})
|
9
test/webui/global.js
Normal file
9
test/webui/global.js
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Setup configuration for Jest
|
||||
* This file includes gloabl settings for the JEST environment.
|
||||
*/
|
||||
import 'raf/polyfill';
|
||||
import { configure } from 'enzyme';
|
||||
import Adapter from 'enzyme-adapter-react-16';
|
||||
|
||||
configure({ adapter: new Adapter() });
|
Loading…
Reference in New Issue
Block a user