Please note: the question is based on the old, now called \"scripted\" pipeline format. When using \"declarative pipelines\", parallel blocks
As @Quartz mentioned, you can do something like
stage('Tests') { parallel( 'Unit Tests': { container('node') { sh("npm test --cat=unit") } }, 'API Tests': { container('node') { sh("npm test --cat=acceptance") } } ) }