const { inspect } = require('node:util'); const { Parser, Command, OptionType } = require('../build'); test('Command Parser', async () => { const command = new Command({ name: 'create', options: [{ name: 'registration-code', aliases: ['code'], type: OptionType.SUB_COMMAND }, { name: 'test' }] }); const parser = new Parser({ commands: [command], prefix: '' }); await expect(parser.parseMessage('create')).rejects.toThrow(); });