<commit_before>var path = require('path');
var spawn = require('child_process').spawn;
var fs = require('fs');
var path = require('path');
var chai = require('chai');

chai.use(require('chai-fs'));
chai.should();

const ROOT_DIR = path.join(process.cwd(), '..');

describe('As a dev', function() {

    this.timeout(10000);

    describe('When running `gulp release --prod`', function() {

        before(function(done) {

            process.chdir(ROOT_DIR);

            var gulp = spawn('gulp', ['release', '--prod'])

            gulp.on('close', function() {
                done();
            });
        });

        it('the release folder should exist', function() {
            var pathToTest = path.join(ROOT_DIR, 'release');
            pathToTest.should.be.a.directory().and.not.empty;
        });

        it('the release folder should contain atleast one zip file', function() {
            var pathToTest = path.join(ROOT_DIR, 'release/');
            var directoryFileName = fs.readdirSync(pathToTest);
            var actualFileExtName = path.extname(directoryFileName);
            var expectedFileExtName = '.zip';

            actualFileExtName.should.equal(expectedFileExtName);
        });

    });

});<commit_msg>test: Add test for gulp build to check if build folder is created<commit_after>var path = require('path');
var spawn = require('child_process').spawn;
var fs = require('fs');
var path = require('path');
var chai = require('chai');

chai.use(require('chai-fs'));
chai.should();

const ROOT_DIR = path.join(process.cwd(), '..');

describe('As a dev', function() {

    this.timeout(10000);

    describe('When running `gulp release --prod`', function() {

        before(function(done) {

            process.chdir(ROOT_DIR);

            var gulp = spawn('gulp', ['release', '--prod'])

            gulp.on('close', function() {
                done();
            });
        });

        it('the release folder should exist', function() {
            var pathToTest = path.join(ROOT_DIR, 'release');
            pathToTest.should.be.a.directory().and.not.empty;
        });

        it('the release folder should contain atleast one zip file', function() {
            var pathToTest = path.join(ROOT_DIR, 'release/');
            var directoryFileName = fs.readdirSync(pathToTest);
            var actualFileExtName = path.extname(directoryFileName);
            var expectedFileExtName = '.zip';

            actualFileExtName.should.equal(expectedFileExtName);
        });

    });

    describe('When running `gulp build --prod`', function() {

        before(function(done) {

            process.chdir(ROOT_DIR);

            var gulp = spawn('gulp', ['build', '--prod'])

            gulp.on('close', function() {
                done();
            });
        });

        it('the build folder should exist', function() {
            var pathToTest = path.join(ROOT_DIR, 'build');
            pathToTest.should.be.a.directory().and.not.empty;
        });

    });

});
{'fraction_non_alphanumeric': 0.15683023872679044, 'fraction_numerical': 0.0033156498673740055, 'mean_word_length': 2.3410852713178296, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3079821', 'n_tokens_mistral': 889, 'n_tokens_neox': 846, 'n_words': 191}