stepney141 / dagaz-v2

JavaScript game engine for creating and playing various boardgames
MIT License
0 stars 1 forks source link

#4: migration QUnit to Jest #8

Closed stepney141 closed 2 years ago

stepney141 commented 2 years ago
[stepney141@manjaro-hp-spectre Dagaz-New]$ npm test

> dagaz-game@2.0.0-alpha test
> node --experimental-vm-modules node_modules/.bin/jest --coverage

(node:338558) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
 PASS  tests/russian-checkers/russian-checkers.test.js
 PASS  tests/chess/chess.test.js
 PASS  tests/english-checkers/english-checkers.test.js
 PASS  tests/international-checkers/international-checkers.test.js
--------------------------------------------|---------|----------|---------|---------|----------------------------------------------------------------
File                                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                              
--------------------------------------------|---------|----------|---------|---------|----------------------------------------------------------------
All files                                   |   80.96 |    81.05 |   47.75 |   80.96 |                                                                
 dependencies                               |     100 |    53.57 |   18.33 |     100 |                                                                
  underscore-esm-min.js                     |     100 |    53.57 |   18.33 |     100 | 5                                                              
 src                                        |   96.62 |      100 |   71.42 |   96.62 |                                                                
  dagaz-model.js                            |   86.36 |      100 |   33.33 |   86.36 | 6-8                                                            
  zobrist.js                                |     100 |      100 |     100 |     100 |                                                                
 src/core                                   |   86.95 |    82.55 |   73.49 |   86.95 |                                                                
  board.js                                  |   98.31 |     92.1 |     100 |   98.31 | 216-217,219-220                                                
  board_grid.js                             |   45.83 |      100 |       0 |   45.83 | 12-43,51-58,69-70,84-91,94-95                                  
  design.js                                 |   86.79 |    72.54 |   73.33 |   86.79 | ...429,437-442,469-470,482-486,488-494,507-508,517-518,528-529 
  index.js                                  |     100 |      100 |     100 |     100 |                                                                
  move.js                                   |   89.47 |    95.23 |   63.63 |   89.47 | 60-61,77-78,85-89,99-103,132-133                               
  move_context.js                           |   90.41 |    82.92 |   80.95 |   90.41 | ...146,166-171,186-187,240-241,244-245,258-259,275-276,279-280 
  piece.js                                  |   84.84 |    73.68 |   83.33 |   84.84 | 38-39,53-54,65-66,70-71,83-84,94-98                            
 tests/chess                                |   82.73 |    93.42 |    92.3 |   82.73 |                                                                
  chess-dagaz-invariant.js                  |   96.07 |     90.9 |     100 |   96.07 | 65-66,98-99,148-149                                            
  chess-dagaz.js                            |   76.81 |    95.34 |    90.9 |   76.81 | 12,21,265-342                                                  
 tests/english-checkers                     |   65.74 |    92.85 |   66.66 |   65.74 |                                                                
  english-checkers-dagaz.js                 |   65.74 |    92.85 |   66.66 |   65.74 | 6,13-15,144-213                                                
 tests/international-checkers               |   67.89 |    91.17 |   88.88 |   67.89 |                                                                
  international-checkers-dagaz-promotion.js |     100 |      100 |     100 |     100 |                                                                
  international-checkers-dagaz.js           |   63.48 |     91.3 |   85.71 |   63.48 | 42-46,196-301                                                  
  maximal-captures-dagaz.js                 |    91.3 |    83.33 |     100 |    91.3 | 19-20                                                          
 tests/russian-checkers                     |    68.2 |    95.83 |   71.42 |    68.2 |                                                                
  russian-checkers-dagaz.js                 |    68.2 |    95.83 |   71.42 |    68.2 | 4-9,167-236                                                    
--------------------------------------------|---------|----------|---------|---------|----------------------------------------------------------------

Test Suites: 4 passed, 4 total
Tests:       13 passed, 13 total
Snapshots:   0 total
Time:        1.377 s
Ran all test suites.