Skip to content

Commit 9b39c4e

Browse files
committed
Tests, documentation and fixes.
1 parent d4621fe commit 9b39c4e

29 files changed

Lines changed: 1415 additions & 318 deletions

File tree

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"arrow-spacing": [2],
1010
"babel/arrow-parens": [2, "as-needed"],
1111
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
12-
"camelcase": [2, {"properties": "always"}],
1312
"comma-dangle": [2, "always-multiline"],
1413
"comma-spacing": [2],
1514
"comma-style": [2, "last"],
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__mocks__/
2+
__tests__/
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__mocks__/
2+
__tests__/

packages/jest-haste-map/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__mocks__/
2+
__tests__/

packages/jest-haste-map/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jest-haste-map",
3-
"version": "11.0.0",
3+
"version": "11.0.2",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/facebook/jest.git"
@@ -13,6 +13,7 @@
1313
"graceful-fs": "^4.1.3"
1414
},
1515
"jest": {
16+
"testEnvironment": "node",
1617
"unmockedModulePathPatterns": [
1718
"denodeify"
1819
]

packages/jest-haste-map/src/__mocks__/fs.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/jest-haste-map/src/__mocks__/graceful-fs.js

Lines changed: 0 additions & 211 deletions
This file was deleted.

packages/jest-haste-map/src/__tests__/fastpath-test.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/**
2+
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
3+
*
4+
* This source code is licensed under the BSD-style license found in the
5+
* LICENSE file in the root directory of this source tree. An additional grant
6+
* of patent rights can be found in the PATENTS file in the same directory.
7+
*
8+
* @emails oncall+jsinfra
9+
*
10+
* original author: dead_horse <dead_horse@qq.com>
11+
* ported by: yaycmyk <evan@yaycmyk.com>
12+
*/
13+
114
// Copyright Joyent, Inc. and other Node contributors.
215
//
316
// Permission is hereby granted, free of charge, to any person obtaining a
@@ -19,10 +32,7 @@
1932
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2033
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2134

22-
/*
23-
* original author: dead_horse <dead_horse@qq.com>
24-
* ported by: yaycmyk <evan@yaycmyk.com>
25-
*/
35+
/* eslint-disable fb-www/soft-max-len */
2636
'use strict';
2737

2838
jest.unmock('../fastpath');

0 commit comments

Comments
 (0)