File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { extractSummary } from '../Utils' ;
9
+ import runJest from '../runJest' ;
10
+
11
+ it ( 'testMatch should able to match file with cts and mts extension' , ( ) => {
12
+ const result = runJest ( 'test-match-ts' ) ;
13
+ expect ( result . exitCode ) . toBe ( 0 ) ;
14
+ const { summary} = extractSummary ( result . stderr ) ;
15
+ expect ( summary ) . toMatchSnapshot ( ) ;
16
+ } ) ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ test ( 'mts extension' , ( ) => {
9
+ expect ( 1 ) . toBe ( 1 ) ;
10
+ } ) ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ test ( 'cts extension' , ( ) => {
9
+ expect ( 1 ) . toBe ( 1 ) ;
10
+ } ) ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "jest" : {
3
+ "testMatch" : [
4
+ " **/__tests__/*.?ts"
5
+ ]
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments