docusaurus/v2/test/jest.config.js
Yangshun Tay 398d7c7ae4
feat(v2): pluginify pages (#1278)
* feat(v2): convert pages into a plugin

* fix: update tests
2019-03-13 13:08:12 -07:00

23 lines
598 B
JavaScript

/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
module.exports = {
rootDir: path.resolve(__dirname, '..'),
verbose: true,
testURL: 'http://localhost/',
testEnvironment: 'node',
moduleNameMapper: {
'^@lib/(.*)$': '<rootDir>/lib/$1',
'^@test/(.*)$': '<rootDir>/test/$1',
},
testPathIgnorePatterns: ['/node_modules/', '__fixtures__', 'v1'],
transform: {
'^.+\\.js$': '<rootDir>/jest.transform.js',
},
};