_test_setup_stop.js 413 B

123456789101112131415161718
  1. 'use strict'
  2. const fs = require('fs-extra')
  3. const path = require('path')
  4. const setup = async () => {
  5. console.log('Tests ran successfully. Running post-tests script...')
  6. const testDir = path.resolve(__dirname, '..')
  7. const imagesDir = path.resolve(testDir, 'images')
  8. console.log('Removing /test/images directory...')
  9. await fs.remove(imagesDir)
  10. console.log('Post-tests script finished.')
  11. }
  12. setup()