File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
01.problem.profiling-slow-tests/src
01.solution.profiling-slow-tests/src Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ speed on some of the tools and concepts we'll be covering:
5050## System Requirements
5151
5252- [ git] [ git ] v2.18 or greater
53- - ** [ NodeJS] [ node ] v23.11.0 or greater**
53+ - ** [ NodeJS] [ node ] v24 or greater**
5454- [ npm] [ npm ] v8 or greater
5555
5656All of these must be available in your ` PATH ` . To verify things are set up
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ import { expensiveCompute } from './utils'
33test ( 'retrieves all the rows' , function myTest ( ) {
44 const rows = expensiveCompute ( )
55 expect ( rows ) . toBeInstanceOf ( Array )
6- expect ( rows ) . toHaveLength ( 100_000_000 )
6+ expect ( rows ) . toHaveLength ( 10_000_000 )
77} )
Original file line number Diff line number Diff line change 11export function expensiveCompute ( ) {
22 const rows = [ ]
33
4- for ( let i = 0 ; i < 100_000_000 ; i ++ ) {
4+ for ( let i = 0 ; i < 10_000_000 ; i ++ ) {
55 rows . push ( i )
66 }
77
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ import { expensiveCompute } from './utils'
33test ( 'retrieves all the rows' , function myTest ( ) {
44 const rows = expensiveCompute ( )
55 expect ( rows ) . toBeInstanceOf ( Array )
6- expect ( rows ) . toHaveLength ( 100_000_000 )
6+ expect ( rows ) . toHaveLength ( 10_000_000 )
77} )
Original file line number Diff line number Diff line change 11export function expensiveCompute ( ) {
22 const rows = [ ]
33
4- for ( let i = 0 ; i < 100_000_000 ; i ++ ) {
4+ for ( let i = 0 ; i < 10_000_000 ; i ++ ) {
55 rows . push ( i )
66 }
77
Original file line number Diff line number Diff line change 4747 " exercises/*/*"
4848 ],
4949 "engines" : {
50- "node" : " >=23 .0.0" ,
50+ "node" : " >=24 .0.0" ,
5151 "npm" : " >=8.16.0" ,
5252 "git" : " >=2.18.0"
5353 },
You can’t perform that action at this time.
0 commit comments