UNPKG

@profullstack/therapy

Version:

CLI tool for interacting with an AI therapist

28 lines (23 loc) 827 B
/** * Basic tests for @profullstack/therapy */ import { expect } from 'chai'; import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); describe('@profullstack/therapy', function() { it('should have a package.json file', function() { const pkgPath = path.join(__dirname, '../package.json'); expect(fs.existsSync(pkgPath)).to.be.true; const pkgContent = fs.readFileSync(pkgPath, 'utf8'); const pkg = JSON.parse(pkgContent); expect(pkg).to.be.an('object'); expect(pkg.name).to.equal('@profullstack/therapy'); }); it('should have a lib directory', function() { const libDir = path.join(__dirname, '../lib'); expect(fs.existsSync(libDir)).to.be.true; }); });