Repository: karen-irc/option-t
Pull request #452 (2019-09-17 11:43:33)

Rename all test files to the style: '***.test.js'
jest & ava supports `__tests__/**/*.(spec|test).js` style.
I think its way is more common style for today's JS code.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/karen-irc/option-t/452)
<!-- Reviewable:end -->



Patch:
diff --git a/.eslintignore b/.eslintignore
index d1321a04..d425287f 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -8,5 +8,5 @@ node_modules/
 !.eslintrc.js
 
 # FIXME: remove these from here
-test/option-t/test_type_definition.ts
-test/result-te/test_type_definition_es6.ts
+__tests__/Option/type_definition.test.ts
+__tests__/Result/type_definition_es6.test.ts
diff --git a/Makefile b/Makefile
index d3d6c829..067f6323 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ NPM_CMD := npm
 
 SRC_DIR := $(CURDIR)/src
 DOCS_DIR := $(CURDIR)/docs
-SRC_TEST_DIR := $(CURDIR)/test
+SRC_TEST_DIR := $(CURDIR)/__tests__
 
 DIST_DIR := $(CURDIR)/__dist
 DIST_DOCS_DIR := $(DIST_DIR)/docs
@@ -190,7 +190,7 @@ mocha: build
 
 .PHONY: run_mocha
 run_mocha: ## Run mocha without any transforms.
-	$(NPM_BIN)/mocha --recursive '$(SRC_TEST_DIR)/**/test_*.js' --reporter $(MOCHA_REPORTER)
+	$(NPM_BIN)/mocha --recursive '$(SRC_TEST_DIR)/**/*.test.js' --reporter $(MOCHA_REPORTER)
 
 .PHONY: run_ava
 run_ava: build
diff --git a/test/.eslintrc.js b/__tests__/.eslintrc.js
similarity index 100%
rename from test/.eslintrc.js
rename to __tests__/.eslintrc.js
diff --git a/test/Maybe/test_and.js b/__tests__/Maybe/and.test.js
similarity index 100%
rename from test/Maybe/test_and.js
rename to __tests__/Maybe/and.test.js
diff --git a/test/Maybe/test_and_then.js b/__tests__/Maybe/and_then.test.js
similarity index 100%
rename from test/Maybe/test_and_then.js
rename to __tests__/Maybe/and_then.test.js
diff --git a/test/Maybe/test_expect.js b/__tests__/Maybe/expect.test.js
similarity index 100%
rename from test/Maybe/test_expect.js
rename to __tests__/Maybe/expect.test.js
diff --git a/test/Maybe/test_map.js b/__tests__/Maybe/map.test.js
similarity index 100%
rename from test/Maybe/test_map.js
rename to __tests__/Maybe/map.test.js
diff --git a/test/Maybe/test_map_or.js b/__tests__/Maybe/map_or.test.js
similarity index 100%
rename from test/Maybe/test_map_or.js
rename to __tests__/Maybe/map_or.test.js
diff --git a/test/Maybe/test_map_or_else.js b/__tests__/Maybe/map_or_else.test.js
similarity index 100%
rename from test/Maybe/test_map_or_else.js
rename to __tests__/Maybe/map_or_else.test.js
diff --git a/test/Maybe/test_or.js b/__tests__/Maybe/or.test.js
similarity index 100%
rename from test/Maybe/test_or.js
rename to __tests__/Maybe/or.test.js
diff --git a/test/Maybe/test_or_else.js b/__tests__/Maybe/or_else.test.js
similarity index 100%
rename from test/Maybe/test_or_else.js
rename to __tests__/Maybe/or_else.test.js
diff --git a/test/Maybe/test_tap.js b/__tests__/Maybe/tap.test.js
similarity index 100%
rename from test/Maybe/test_tap.js
rename to __tests__/Maybe/tap.test.js
diff --git a/test/Maybe/test_type_guard.js b/__tests__/Maybe/type_guard.test.js
similarity index 100%
rename from test/Maybe/test_type_guard.js
rename to __tests__/Maybe/type_guard.test.js
diff --git a/test/Maybe/test_unwrap.js b/__tests__/Maybe/unwrap.test.js
similarity index 100%
rename from test/Maybe/test_unwrap.js
rename to __tests__/Maybe/unwrap.test.js
diff --git a/test/Maybe/test_unwrap_or.js b/__tests__/Maybe/unwrap_or.test.js
similarity index 100%
rename from test/Maybe/test_unwrap_or.js
rename to __tests__/Maybe/unwrap_or.test.js
diff --git a/test/Maybe/test_unwrap_or_else.js b/__tests__/Maybe/unwrap_or_else.test.js
similarity index 100%
rename from test/Maybe/test_unwrap_or_else.js
rename to __tests__/Maybe/unwrap_or_else.test.js
diff --git a/test/Nullable/test_and.js b/__tests__/Nullable/and.test.js
similarity index 100%
rename from test/Nullable/test_and.js
rename to __tests__/Nullable/and.test.js
diff --git a/test/Nullable/test_and_then.js b/__tests__/Nullable/and_then.test.js
similarity index 100%
rename from test/Nullable/test_and_then.js
rename to __tests__/Nullable/and_then.test.js
diff --git a/test/Nullable/test_expect.js b/__tests__/Nullable/expect.test.js
similarity index 100%
rename from test/Nullable/test_expect.js
rename to __tests__/Nullable/expect.test.js
diff --git a/test/Nullable/test_map.js b/__tests__/Nullable/map.test.js
similarity index 100%
rename from test/Nullable/test_map.js
rename to __tests__/Nullable/map.test.js
diff --git a/test/Nullable/test_map_or.js b/__tests__/Nullable/map_or.test.js
similarity index 100%
rename from test/Nullable/test_map_or.js
rename to __tests__/Nullable/map_or.test.js
diff --git a/test/Nullable/test_map_or_else.js b/__tests__/Nullable/map_or_else.test.js
similarity index 100%
rename from test/Nullable/test_map_or_else.js
rename to __tests__/Nullable/map_or_else.test.js
diff --git a/test/Nullable/test_or.js b/__tests__/Nullable/or.test.js
similarity index 100%
rename from test/Nullable/test_or.js
rename to __tests__/Nullable/or.test.js
diff --git a/test/Nullable/test_or_else.js b/__tests__/Nullable/or_else.test.js
similarity index 100%
rename from test/Nullable/test_or_else.js
rename to __tests__/Nullable/or_else.test.js
diff --git a/test/Nullable/test_tap.js b/__tests__/Nullable/tap.test.js
similarity index 100%
rename from test/Nullable/test_tap.js
rename to __tests__/Nullable/tap.test.js
diff --git a/test/Nullable/test_type_guard.js b/__tests__/Nullable/type_guard.test.js
similarity index 100%
rename from test/Nullable/test_type_guard.js
rename to __tests__/Nullable/type_guard.test.js
diff --git a/test/Nullable/test_unwrap.js b/__tests__/Nullable/unwrap.test.js
similarity index 100%
rename from test/Nullable/test_unwrap.js
rename to __tests__/Nullable/unwrap.test.js
diff --git a/test/Nullable/test_unwrap_or.js b/__tests__/Nullable/unwrap_or.test.js
similarity index 100%
rename from test/Nullable/test_unwrap_or.js
rename to __tests__/Nullable/unwrap_or.test.js
diff --git a/test/Nullable/test_unwrap_or_else.js b/__tests__/Nullable/unwrap_or_else.test.js
similarity index 100%
rename from test/Nullable/test_unwrap_or_else.js
rename to __tests__/Nullable/unwrap_or_else.test.js
diff --git a/test/option-t/test_and.js b/__tests__/Option/and.test.js
similarity index 100%
rename from test/option-t/test_and.js
rename to __tests__/Option/and.test.js
diff --git a/test/option-t/test_create.js b/__tests__/Option/create.test.js
similarity index 100%
rename from test/option-t/test_create.js
rename to __tests__/Option/create.test.js
diff --git a/test/option-t/test_drop.js b/__tests__/Option/drop.test.js
similarity index 100%
rename from test/option-t/test_drop.js
rename to __tests__/Option/drop.test.js
diff --git a/test/option-t/test_expect.js b/__tests__/Option/expect.test.js
similarity index 100%
rename from test/option-t/test_expect.js
rename to __tests__/Option/expect.test.js
diff --git a/test/option-t/test_flatmap.js b/__tests__/Option/flatmap.test.js
similarity index 100%
rename from test/option-t/test_flatmap.js
rename to __tests__/Option/flatmap.test.js
diff --git a/test/option-t/test_inheritance.js b/__tests__/Option/inheritance.test.js
similarity index 100%
rename from test/option-t/test_inheritance.js
rename to __tests__/Option/inheritance.test.js
diff --git a/test/option-t/test_initialize.js b/__tests__/Option/initialize.test.js
similarity index 100%
rename from test/option-t/test_initialize.js
rename to __tests__/Option/initialize.test.js
diff --git a/test/option-t/test_json.js b/__tests__/Option/json.test.js
similarity index 100%
rename from test/option-t/test_json.js
rename to __tests__/Option/json.test.js
diff --git a/test/option-t/test_map.js b/__tests__/Option/map.test.js
similarity index 100%
rename from test/option-t/test_map.js
rename to __tests__/Option/map.test.js
diff --git a/test/option-t/test_map_or.js b/__tests__/Option/map_or.test.js
similarity index 100%
rename from test/option-t/test_map_or.js
rename to __tests__/Option/map_or.test.js
diff --git a/test/option-t/test_map_or_else.js b/__tests__/Option/map_or_else.test.js
similarity index 100%
rename from test/option-t/test_map_or_else.js
rename to __tests__/Option/map_or_else.test.js
diff --git a/test/option-t/test_or.js b/__tests__/Option/or.test.js
similarity index 100%
rename from test/option-t/test_or.js
rename to __tests__/Option/or.test.js
diff --git a/test/option-t/test_or_else.js b/__tests__/Option/or_else.test.js
similarity index 100%
rename from test/option-t/test_or_else.js
rename to __tests__/Option/or_else.test.js
diff --git a/test/option-t/test_type_definition.ts b/__tests__/Option/type_definition.test.ts
similarity index 100%
rename from test/option-t/test_type_definition.ts
rename to __tests__/Option/type_definition.test.ts
diff --git a/test/option-t/test_unwrap.js b/__tests__/Option/unwrap.test.js
similarity index 100%
rename from test/option-t/test_unwrap.js
rename to __tests__/Option/unwrap.test.js
diff --git a/test/option-t/test_unwrap_or.js b/__tests__/Option/unwrap_or.test.js
similarity index 100%
rename from test/option-t/test_unwrap_or.js
rename to __tests__/Option/unwrap_or.test.js
diff --git a/test/option-t/test_unwrap_or_else.js b/__tests__/Option/unwrap_or_else.test.js
similarity index 100%
rename from test/option-t/test_unwrap_or_else.js
rename to __tests__/Option/unwrap_or_else.test.js
diff --git a/test/result-te/test_and.js b/__tests__/Result/and.test.js
similarity index 100%
rename from test/result-te/test_and.js
rename to __tests__/Result/and.test.js
diff --git a/test/result-te/test_and_then.js b/__tests__/Result/and_then.test.js
similarity index 100%
rename from test/result-te/test_and_then.js
rename to __tests__/Result/and_then.test.js
diff --git a/test/result-te/test_create.js b/__tests__/Result/create.test.js
similarity index 100%
rename from test/result-te/test_create.js
rename to __tests__/Result/create.test.js
diff --git a/test/result-te/test_drop.js b/__tests__/Result/drop.test.js
similarity index 100%
rename from test/result-te/test_drop.js
rename to __tests__/Result/drop.test.js
diff --git a/test/result-te/test_err.js b/__tests__/Result/err.test.js
similarity index 100%
rename from test/result-te/test_err.js
rename to __tests__/Result/err.test.js
diff --git a/test/result-te/test_expect.js b/__tests__/Result/expect.test.js
similarity index 100%
rename from test/result-te/test_expect.js
rename to __tests__/Result/expect.test.js
diff --git a/test/result-te/test_inheritance.js b/__tests__/Result/inheritance.test.js
similarity index 100%
rename from test/result-te/test_inheritance.js
rename to __tests__/Result/inheritance.test.js
diff --git a/test/result-te/test_initialize.js b/__tests__/Result/initialize.test.js
similarity index 100%
rename from test/result-te/test_initialize.js
rename to __tests__/Result/initialize.test.js
diff --git a/test/result-te/test_map.js b/__tests__/Result/map.test.js
similarity index 100%
rename from test/result-te/test_map.js
rename to __tests__/Result/map.test.js
diff --git a/test/result-te/test_map_err.js b/__tests__/Result/map_err.test.js
similarity index 100%
rename from test/result-te/test_map_err.js
rename to __tests__/Result/map_err.test.js
diff --git a/test/result-te/test_ok.js b/__tests__/Result/ok.test.js
similarity index 100%
rename from test/result-te/test_ok.js
rename to __tests__/Result/ok.test.js
diff --git a/test/result-te/test_or.js b/__tests__/Result/or.test.js
similarity index 100%
rename from test/result-te/test_or.js
rename to __tests__/Result/or.test.js
diff --git a/test/result-te/test_or_else.js b/__tests__/Result/or_else.test.js
similarity index 100%
rename from test/result-te/test_or_else.js
rename to __tests__/Result/or_else.test.js
diff --git a/test/result-te/test_type_definition_es6.ts b/__tests__/Result/type_definition_es6.test.ts
similarity index 100%
rename from test/result-te/test_type_definition_es6.ts
rename to __tests__/Result/type_definition_es6.test.ts
diff --git a/test/result-te/test_unwrap.js b/__tests__/Result/unwrap.test.js
similarity index 100%
rename from test/result-te/test_unwrap.js
rename to __tests__/Result/unwrap.test.js
diff --git a/test/result-te/test_unwrap_err.js b/__tests__/Result/unwrap_err.test.js
similarity index 100%
rename from test/result-te/test_unwrap_err.js
rename to __tests__/Result/unwrap_err.test.js
diff --git a/test/result-te/test_unwrap_or.js b/__tests__/Result/unwrap_or.test.js
similarity index 100%
rename from test/result-te/test_unwrap_or.js
rename to __tests__/Result/unwrap_or.test.js
diff --git a/test/result-te/test_unwrap_or_else.js b/__tests__/Result/unwrap_or_else.test.js
similarity index 100%
rename from test/result-te/test_unwrap_or_else.js
rename to __tests__/Result/unwrap_or_else.test.js
diff --git a/test/utils.js b/__tests__/utils.js
similarity index 100%
rename from test/utils.js
rename to __tests__/utils.js
diff --git a/ava_test/Maybe/test_xor.js b/ava_test/Maybe/xor.test.js
similarity index 100%
rename from ava_test/Maybe/test_xor.js
rename to ava_test/Maybe/xor.test.js
diff --git a/ava_test/Nullable/test_xor.js b/ava_test/Nullable/xor.test.js
similarity index 100%
rename from ava_test/Nullable/test_xor.js
rename to ava_test/Nullable/xor.test.js
diff --git a/ava_test/PlainOption/test_and.js b/ava_test/PlainOption/and.test.js
similarity index 100%
rename from ava_test/PlainOption/test_and.js
rename to ava_test/PlainOption/and.test.js
diff --git a/ava_test/PlainOption/test_and_then.js b/ava_test/PlainOption/and_then.test.js
similarity index 100%
rename from ava_test/PlainOption/test_and_then.js
rename to ava_test/PlainOption/and_then.test.js
diff --git a/ava_test/PlainOption/test_as_mut.js b/ava_test/PlainOption/as_mut.test.js
similarity index 100%
rename from ava_test/PlainOption/test_as_mut.js
rename to ava_test/PlainOption/as_mut.test.js
diff --git a/ava_test/PlainOption/test_create.js b/ava_test/PlainOption/create.test.js
similarity index 100%
rename from ava_test/PlainOption/test_create.js
rename to ava_test/PlainOption/create.test.js
diff --git a/ava_test/PlainOption/test_drop.js b/ava_test/PlainOption/drop.test.js
similarity index 100%
rename from ava_test/PlainOption/test_drop.js
rename to ava_test/PlainOption/drop.test.js
diff --git a/ava_test/PlainOption/test_expect.js b/ava_test/PlainOption/expect.test.js
similarity index 100%
rename from ava_test/PlainOption/test_expect.js
rename to ava_test/PlainOption/expect.test.js
diff --git a/ava_test/PlainOption/test_filter.js b/ava_test/PlainOption/filter.test.js
similarity index 100%
rename from ava_test/PlainOption/test_filter.js
rename to ava_test/PlainOption/filter.test.js
diff --git a/ava_test/PlainOption/test_flatten.js b/ava_test/PlainOption/flatten.test.js
similarity index 100%
rename from ava_test/PlainOption/test_flatten.js
rename to ava_test/PlainOption/flatten.test.js
diff --git a/ava_test/PlainOption/test_map.js b/ava_test/PlainOption/map.test.js
similarity index 100%
rename from ava_test/PlainOption/test_map.js
rename to ava_test/PlainOption/map.test.js
diff --git a/ava_test/PlainOption/test_map_or.js b/ava_test/PlainOption/map_or.test.js
similarity index 100%
rename from ava_test/PlainOption/test_map_or.js
rename to ava_test/PlainOption/map_or.test.js
diff --git a/ava_test/PlainOption/test_map_or_else.js b/ava_test/PlainOption/map_or_else.test.js
similarity index 100%
rename from ava_test/PlainOption/test_map_or_else.js
rename to ava_test/PlainOption/map_or_else.test.js
diff --git a/ava_test/PlainOption/test_object_shape.js b/ava_test/PlainOption/object_shape.test.js
similarity index 100%
rename from ava_test/PlainOption/test_object_shape.js
rename to ava_test/PlainOption/object_shape.test.js
diff --git a/ava_test/PlainOption/test_ok_or.js b/ava_test/PlainOption/ok_or.test.js
similarity index 100%
rename from ava_test/PlainOption/test_ok_or.js
rename to ava_test/PlainOption/ok_or.test.js
diff --git a/ava_test/PlainOption/test_ok_or_else.js b/ava_test/PlainOption/ok_or_else.test.js
similarity index 100%
rename from ava_test/PlainOption/test_ok_or_else.js
rename to ava_test/PlainOption/ok_or_else.test.js
diff --git a/ava_test/PlainOption/test_or.js b/ava_test/PlainOption/or.test.js
similarity index 100%
rename from ava_test/PlainOption/test_or.js
rename to ava_test/PlainOption/or.test.js
diff --git a/ava_test/PlainOption/test_or_else.js b/ava_test/PlainOption/or_else.test.js
similarity index 100%
rename from ava_test/PlainOption/test_or_else.js
rename to ava_test/PlainOption/or_else.test.js
diff --git a/ava_test/PlainOption/test_tap.js b/ava_test/PlainOption/tap.test.js
similarity index 100%
rename from ava_test/PlainOption/test_tap.js
rename to ava_test/PlainOption/tap.test.js
diff --git a/ava_test/PlainOption/test_transpose.js b/ava_test/PlainOption/transpose.test.js
similarity index 100%
rename from ava_test/PlainOption/test_transpose.js
rename to ava_test/PlainOption/transpose.test.js
diff --git a/ava_test/PlainOption/type_guard/test_none.js b/ava_test/PlainOption/type_guard/test_none.test.js
similarity index 100%
rename from ava_test/PlainOption/type_guard/test_none.js
rename to ava_test/PlainOption/type_guard/test_none.test.js
diff --git a/ava_test/PlainOption/type_guard/test_some.js b/ava_test/PlainOption/type_guard/test_some.test.js
similarity index 100%
rename from ava_test/PlainOption/type_guard/test_some.js
rename to ava_test/PlainOption/type_guard/test_some.test.js
diff --git a/ava_test/PlainOption/test_unwrap.js b/ava_test/PlainOption/unwrap.test.js
similarity index 100%
rename from ava_test/PlainOption/test_unwrap.js
rename to ava_test/PlainOption/unwrap.test.js
diff --git a/ava_test/PlainOption/test_unwrap_or.js b/ava_test/PlainOption/unwrap_or.test.js
similarity index 100%
rename from ava_test/PlainOption/test_unwrap_or.js
rename to ava_test/PlainOption/unwrap_or.test.js
diff --git a/ava_test/PlainOption/test_unwrap_or_else.js b/ava_test/PlainOption/unwrap_or_else.test.js
similarity index 100%
rename from ava_test/PlainOption/test_unwrap_or_else.js
rename to ava_test/PlainOption/unwrap_or_else.test.js
diff --git a/ava_test/PlainOption/test_xor.js b/ava_test/PlainOption/xor.test.js
similarity index 100%
rename from ava_test/PlainOption/test_xor.js
rename to ava_test/PlainOption/xor.test.js
diff --git a/ava_test/PlainResult/test_and.js b/ava_test/PlainResult/and.test.js
similarity index 100%
rename from ava_test/PlainResult/test_and.js
rename to ava_test/PlainResult/and.test.js
diff --git a/ava_test/PlainResult/test_and_then.js b/ava_test/PlainResult/and_then.test.js
similarity index 100%
rename from ava_test/PlainResult/test_and_then.js
rename to ava_test/PlainResult/and_then.test.js
diff --git a/ava_test/PlainResult/test_as_mut.js b/ava_test/PlainResult/as_mut.test.js
similarity index 100%
rename from ava_test/PlainResult/test_as_mut.js
rename to ava_test/PlainResult/as_mut.test.js
diff --git a/ava_test/PlainResult/test_create.js b/ava_test/PlainResult/create.test.js
similarity index 100%
rename from ava_test/PlainResult/test_create.js
rename to ava_test/PlainResult/create.test.js
diff --git a/ava_test/PlainResult/drop/test_drop_both.js b/ava_test/PlainResult/drop/test_drop_both.test.js
similarity index 100%
rename from ava_test/PlainResult/drop/test_drop_both.js
rename to ava_test/PlainResult/drop/test_drop_both.test.js
diff --git a/ava_test/PlainResult/drop/test_drop_err.js b/ava_test/PlainResult/drop/test_drop_err.test.js
similarity index 100%
rename from ava_test/PlainResult/drop/test_drop_err.js
rename to ava_test/PlainResult/drop/test_drop_err.test.js
diff --git a/ava_test/PlainResult/drop/test_drop_ok.js b/ava_test/PlainResult/drop/test_drop_ok.test.js
similarity index 100%
rename from ava_test/PlainResult/drop/test_drop_ok.js
rename to ava_test/PlainResult/drop/test_drop_ok.test.js
diff --git a/ava_test/PlainResult/expect/test_expect_err.js b/ava_test/PlainResult/expect/test_expect_err.test.js
similarity index 100%
rename from ava_test/PlainResult/expect/test_expect_err.js
rename to ava_test/PlainResult/expect/test_expect_err.test.js
diff --git a/ava_test/PlainResult/expect/test_expect_ok.js b/ava_test/PlainResult/expect/test_expect_ok.test.js
similarity index 100%
rename from ava_test/PlainResult/expect/test_expect_ok.js
rename to ava_test/PlainResult/expect/test_expect_ok.test.js
diff --git a/ava_test/PlainResult/test_map.js b/ava_test/PlainResult/map.test.js
similarity index 100%
rename from ava_test/PlainResult/test_map.js
rename to ava_test/PlainResult/map.test.js
diff --git a/ava_test/PlainResult/test_map_err.js b/ava_test/PlainResult/map_err.test.js
similarity index 100%
rename from ava_test/PlainResult/test_map_err.js
rename to ava_test/PlainResult/map_err.test.js
diff --git a/ava_test/PlainResult/test_map_or_else.js b/ava_test/PlainResult/map_or_else.test.js
similarity index 100%
rename from ava_test/PlainResult/test_map_or_else.js
rename to ava_test/PlainResult/map_or_else.test.js
diff --git a/ava_test/PlainResult/test_object_shape.js b/ava_test/PlainResult/object_shape.test.js
similarity index 100%
rename from ava_test/PlainResult/test_object_shape.js
rename to ava_test/PlainResult/object_shape.test.js
diff --git a/ava_test/PlainResult/test_or.js b/ava_test/PlainResult/or.test.js
similarity index 100%
rename from ava_test/PlainResult/test_or.js
rename to ava_test/PlainResult/or.test.js
diff --git a/ava_test/PlainResult/test_or_else.js b/ava_test/PlainResult/or_else.test.js
similarity index 100%
rename from ava_test/PlainResult/test_or_else.js
rename to ava_test/PlainResult/or_else.test.js
diff --git a/ava_test/PlainResult/tap/test_tap_both.js b/ava_test/PlainResult/tap/test_tap_both.test.js
similarity index 100%
rename from ava_test/PlainResult/tap/test_tap_both.js
rename to ava_test/PlainResult/tap/test_tap_both.test.js
diff --git a/ava_test/PlainResult/tap/test_tap_err.js b/ava_test/PlainResult/tap/test_tap_err.test.js
similarity index 100%
rename from ava_test/PlainResult/tap/test_tap_err.js
rename to ava_test/PlainResult/tap/test_tap_err.test.js
diff --git a/ava_test/PlainResult/tap/test_tap_ok.js b/ava_test/PlainResult/tap/test_tap_ok.test.js
similarity index 100%
rename from ava_test/PlainResult/tap/test_tap_ok.js
rename to ava_test/PlainResult/tap/test_tap_ok.test.js
diff --git a/ava_test/PlainResult/test_to_option.js b/ava_test/PlainResult/to_option.test.js
similarity index 100%
rename from ava_test/PlainResult/test_to_option.js
rename to ava_test/PlainResult/to_option.test.js
diff --git a/ava_test/PlainResult/test_transpose.js b/ava_test/PlainResult/transpose.test.js
similarity index 100%
rename from ava_test/PlainResult/test_transpose.js
rename to ava_test/PlainResult/transpose.test.js
diff --git a/ava_test/PlainResult/test_type_compat_with_plain_option.js b/ava_test/PlainResult/type_compat_with_plain_option.test.js
similarity index 100%
rename from ava_test/PlainResult/test_type_compat_with_plain_option.js
rename to ava_test/PlainResult/type_compat_with_plain_option.test.js
diff --git a/ava_test/PlainResult/type_guard/test_err.js b/ava_test/PlainResult/type_guard/test_err.test.js
similarity index 100%
rename from ava_test/PlainResult/type_guard/test_err.js
rename to ava_test/PlainResult/type_guard/test_err.test.js
diff --git a/ava_test/PlainResult/type_guard/test_ok.js b/ava_test/PlainResult/type_guard/test_ok.test.js
similarity index 100%
rename from ava_test/PlainResult/type_guard/test_ok.js
rename to ava_test/PlainResult/type_guard/test_ok.test.js
diff --git a/ava_test/PlainResult/test_unwrap.js b/ava_test/PlainResult/unwrap.test.js
similarity index 100%
rename from ava_test/PlainResult/test_unwrap.js
rename to ava_test/PlainResult/unwrap.test.js
diff --git a/ava_test/PlainResult/test_unwrap_or.js b/ava_test/PlainResult/unwrap_or.test.js
similarity index 100%
rename from ava_test/PlainResult/test_unwrap_or.js
rename to ava_test/PlainResult/unwrap_or.test.js
diff --git a/ava_test/PlainResult/test_unwrap_or_else.js b/ava_test/PlainResult/unwrap_or_else.test.js
similarity index 100%
rename from ava_test/PlainResult/test_unwrap_or_else.js
rename to ava_test/PlainResult/unwrap_or_else.test.js
diff --git a/ava_test/Result/test_map_or_else.js b/ava_test/Result/map_or_else.test.js
similarity index 100%
rename from ava_test/Result/test_map_or_else.js
rename to ava_test/Result/map_or_else.test.js
diff --git a/ava_test/Undefinable/test_and.js b/ava_test/Undefinable/and.test.js
similarity index 100%
rename from ava_test/Undefinable/test_and.js
rename to ava_test/Undefinable/and.test.js
diff --git a/ava_test/Undefinable/test_and_then.js b/ava_test/Undefinable/and_then.test.js
similarity index 100%
rename from ava_test/Undefinable/test_and_then.js
rename to ava_test/Undefinable/and_then.test.js
diff --git a/ava_test/Undefinable/test_expect.js b/ava_test/Undefinable/expect.test.js
similarity index 100%
rename from ava_test/Undefinable/test_expect.js
rename to ava_test/Undefinable/expect.test.js
diff --git a/ava_test/Undefinable/test_map.js b/ava_test/Undefinable/map.test.js
similarity index 100%
rename from ava_test/Undefinable/test_map.js
rename to ava_test/Undefinable/map.test.js
diff --git a/ava_test/Undefinable/test_map_or.js b/ava_test/Undefinable/map_or.test.js
similarity index 100%
rename from ava_test/Undefinable/test_map_or.js
rename to ava_test/Undefinable/map_or.test.js
diff --git a/ava_test/Undefinable/test_map_or_else.js b/ava_test/Undefinable/map_or_else.test.js
similarity index 100%
rename from ava_test/Undefinable/test_map_or_else.js
rename to ava_test/Undefinable/map_or_else.test.js
diff --git a/ava_test/Undefinable/test_or.js b/ava_test/Undefinable/or.test.js
similarity index 100%
rename from ava_test/Undefinable/test_or.js
rename to ava_test/Undefinable/or.test.js
diff --git a/ava_test/Undefinable/test_or_else.js b/ava_test/Undefinable/or_else.test.js
similarity index 100%
rename from ava_test/Undefinable/test_or_else.js
rename to ava_test/Undefinable/or_else.test.js
diff --git a/ava_test/Undefinable/test_tap.js b/ava_test/Undefinable/tap.test.js
similarity index 100%
rename from ava_test/Undefinable/test_tap.js
rename to ava_test/Undefinable/tap.test.js
diff --git a/ava_test/Undefinable/type_guard/test_isNotUndefined.js b/ava_test/Undefinable/type_guard/test_isNotUndefined.test.js
similarity index 100%
rename from ava_test/Undefinable/type_guard/test_isNotUndefined.js
rename to ava_test/Undefinable/type_guard/test_isNotUndefined.test.js
diff --git a/ava_test/Undefinable/type_guard/test_isUndefined.js b/ava_test/Undefinable/type_guard/test_isUndefined.test.js
similarity index 100%
rename from ava_test/Undefinable/type_guard/test_isUndefined.js
rename to ava_test/Undefinable/type_guard/test_isUndefined.test.js
diff --git a/ava_test/Undefinable/test_unwrap.js b/ava_test/Undefinable/unwrap.test.js
similarity index 100%
rename from ava_test/Undefinable/test_unwrap.js
rename to ava_test/Undefinable/unwrap.test.js
diff --git a/ava_test/Undefinable/test_unwrap_or.js b/ava_test/Undefinable/unwrap_or.test.js
similarity index 100%
rename from ava_test/Undefinable/test_unwrap_or.js
rename to ava_test/Undefinable/unwrap_or.test.js
diff --git a/ava_test/Undefinable/test_unwrap_or_else.js b/ava_test/Undefinable/unwrap_or_else.test.js
similarity index 100%
rename from ava_test/Undefinable/test_unwrap_or_else.js
rename to ava_test/Undefinable/unwrap_or_else.test.js
diff --git a/ava_test/Undefinable/test_xor.js b/ava_test/Undefinable/xor.test.js
similarity index 100%
rename from ava_test/Undefinable/test_xor.js
rename to ava_test/Undefinable/xor.test.js
diff --git a/package.json b/package.json
index b272af25..2ed760c5 100644
--- a/package.json
+++ b/package.json
@@ -64,7 +64,7 @@
   "typings": "./cjs/index.d.ts",
   "ava": {
     "files": [
-      "ava_test/**/test_*.js"
+      "ava_test/**/*.test.js"
     ],
     "babel": {
       "testOptions": {
diff --git a/tsconfig.json b/tsconfig.json
index 4a679864..f82cc617 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -63,7 +63,6 @@
         "plugins": [],
     },
     "include": [
-        "src/**/**.ts",
-        "test/**/**.ts"
+        "src/**/**.ts"
     ]
 }


Test patch:
diff --git a/tsconfig_test.json b/tsconfig_test.json
index 6f0068f9..99602fc5 100644
--- a/tsconfig_test.json
+++ b/tsconfig_test.json
@@ -6,5 +6,9 @@
             "es2017"
         ],
         "noUnusedLocals": false // for testing
-    }
+    },
+    "include": [
+      "src/**/**.ts",
+      "__tests__/**/**.test.ts"
+  ]
 }