steps:
- task: NodeTool@0
  inputs:
    versionSpec: '14.16.0'
  displayName: 'Use Node.js 14.16.0'

- script: |
    npm ci
  displayName: 'Install dependencies'

- script:
    npm run compile
  displayName: 'Compile client'

- script: |
    npm run test
  displayName: 'Run unit tests'

- task: PublishTestResults@2
  inputs:
    testResultsFormat: 'JUnit'
    testResultsFiles: 'util/junit.xml'
    testRunTitle: 'Run unit tests'