mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
refactor(v2): add flowtype + refactor test (#1443)
* chore(v2): add flow setup * nits * fix * add flow-typed * ignore compiled library * fix error * fix typing * fix module name mapper * setup for @docusaurus/core * dont try remove type without @flow * fix can't find @docusaurus/utils * fix test * remove obscure relative paths * more refactoring * add typing for server/load/theme.js * no need to ship .flow source
This commit is contained in:
parent
6f011d8e7a
commit
c2ebde997a
103 changed files with 8901 additions and 1589 deletions
|
@ -12,11 +12,8 @@ module.exports = {
|
|||
verbose: true,
|
||||
testURL: 'http://localhost/',
|
||||
testEnvironment: 'node',
|
||||
moduleNameMapper: {
|
||||
'^@lib/(.*)$': '<rootDir>/packages/docusaurus/lib/$1',
|
||||
},
|
||||
testPathIgnorePatterns: ['loadSetup.js', '/node_modules/', '__fixtures__'],
|
||||
testPathIgnorePatterns: ['/node_modules/', '__fixtures__'],
|
||||
transform: {
|
||||
'^.+\\.js$': '<rootDir>/jest.transform.js',
|
||||
'^.+\\.js$': 'babel-jest',
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue