Skip to content

Commit c3aaa86

Browse files
authored
refactor: remove flow and related dependencies, test on 10 not latest, skip slow tests
1 parent d04a555 commit c3aaa86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+189
-1462
lines changed

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ workflows:
44
jobs:
55
- node-v6
66
- node-v8
7-
- node-latest
7+
- node-v10
88

99
version: 2
1010
jobs:
@@ -42,7 +42,7 @@ jobs:
4242
<<: *node-base
4343
docker:
4444
- image: node:8
45-
node-latest:
45+
node-v10:
4646
<<: *node-base
4747
docker:
48-
- image: node:latest
48+
- image: node:10

.eslintrc

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
"parserOptions": {
55
"sourceType": "module"
66
},
7-
"plugins": [
8-
"flowtype"
9-
],
107
"rules": {
118
"no-var": 2,
129
"prefer-const": 2,
@@ -27,13 +24,10 @@
2724
"no-eq-null": 2,
2825
"strict": [2, "global"],
2926
"no-shadow": 0,
30-
"no-undef": 2,
31-
"flowtype/define-flow-type": 1,
32-
"flowtype/use-flow-type": 1
27+
"no-undef": 2
3328
},
3429
"extends": [
3530
"eslint:recommended",
36-
"plugin:flowtype/recommended",
3731
"prettier"
3832
],
3933
"env": {

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/lib
21
coverage
32
.nyc_output
43
/node_modules

__tests__/__snapshots__/bin-readme.js.snap

-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ exports[`readme autodetection of different filenames updates readme.markdown 1`]
1010
### Table of Contents
1111
1212
- [foo](#foo)
13-
1413
- [Parameters](#parameters)
1514
- [bar](#bar)
16-
1715
- [Parameters](#parameters-1)
1816
1917
## foo
@@ -48,10 +46,8 @@ exports[`readme command --readme-file 1`] = `
4846
### Table of Contents
4947
5048
- [foo](#foo)
51-
5249
- [Parameters](#parameters)
5350
- [bar](#bar)
54-
5551
- [Parameters](#parameters-1)
5652
5753
## foo
@@ -86,10 +82,8 @@ exports[`readme command updates README.md 1`] = `
8682
### Table of Contents
8783
8884
- [foo](#foo)
89-
9085
- [Parameters](#parameters)
9186
- [bar](#bar)
92-
9387
- [Parameters](#parameters-1)
9488
9589
## foo

__tests__/__snapshots__/bin.js.snap

-12
Original file line numberDiff line numberDiff line change
@@ -1858,35 +1858,27 @@ exports[`build --document-exported 1`] = `
18581858
### Table of Contents
18591859
18601860
- [z][1]
1861-
18621861
- [zMethod][2]
18631862
- [x][3]
1864-
18651863
- [Parameters][4]
18661864
- [Class][5]
1867-
18681865
- [Parameters][6]
18691866
- [classMethod][7]
18701867
- [classGetter][8]
18711868
- [classSetter][9]
1872-
18731869
- [Parameters][10]
18741870
- [staticMethod][11]
18751871
- [staticGetter][12]
18761872
- [staticSetter][13]
1877-
18781873
- [Parameters][14]
18791874
- [T5][15]
18801875
- [y2Default][16]
18811876
- [y4][17]
1882-
18831877
- [Parameters][18]
18841878
- [object][19]
1885-
18861879
- [method][20]
18871880
- [getter][21]
18881881
- [setter][22]
1889-
18901882
- [Parameters][23]
18911883
- [prop][24]
18921884
- [func][25]
@@ -1896,16 +1888,12 @@ exports[`build --document-exported 1`] = `
18961888
- [T2][29]
18971889
- [T4][30]
18981890
- [f4][31]
1899-
19001891
- [Parameters][32]
19011892
- [o1][33]
1902-
19031893
- [om1][34]
19041894
- [f5][35]
1905-
19061895
- [Parameters][36]
19071896
- [o2][37]
1908-
19091897
- [om2][38]
19101898
19111899
## z

__tests__/bin-watch-serve.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ function normalize(result) {
2828

2929
const timeout = 20000;
3030

31-
test('harness', function() {
31+
test.skip('harness', function() {
3232
const docProcess = documentation(['serve', 'fixture/simple.input.js']);
3333
expect(docProcess).toBeTruthy();
3434
docProcess.kill();
3535
});
3636

37-
test(
37+
test.skip(
3838
'provides index.html',
3939
function() {
4040
const docProcess = documentation(['serve', 'fixture/simple.input.js']);
@@ -52,7 +52,7 @@ test(
5252
timeout
5353
);
5454

55-
test(
55+
test.skip(
5656
'accepts port argument',
5757
function() {
5858
const docProcess = documentation([
@@ -74,7 +74,7 @@ test(
7474
timeout
7575
);
7676

77-
test(
77+
test.skip(
7878
'--watch',
7979
function(done) {
8080
const tmpFile = path.join(os.tmpdir(), '/simple.js');
@@ -105,7 +105,7 @@ test(
105105
timeout
106106
);
107107

108-
test(
108+
test.skip(
109109
'--watch',
110110
function(done) {
111111
const tmpDir = os.tmpdir();
@@ -139,7 +139,7 @@ test(
139139
timeout
140140
);
141141

142-
test(
142+
test.skip(
143143
'error page',
144144
function() {
145145
const tmpDir = os.tmpdir();

0 commit comments

Comments
 (0)