Skip to content

Commit

Permalink
hone in on the failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyguerra committed Sep 25, 2023
1 parent a2b08e2 commit 6c06337
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/nodejs-windows-coffeescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Testing Windows Pipeline
on:
push:
branches:
- fix-windows-test-coffeescript
jobs:
npm-test:
runs-on: windows-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Run Tests
env:
HUBOT_LOG_LEVEL: debug
run: npm test -- --test-name-pattern "Robot Coffeescript" test/robot_test.js
4 changes: 1 addition & 3 deletions test/robot_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

/* eslint-disable no-unused-expressions */
require('coffeescript/register.js')
const { describe, it, beforeEach, afterEach } = require('node:test')
const assert = require('assert/strict')
Expand Down Expand Up @@ -969,8 +968,7 @@ describe('Robot', () => {
describe('Robot Coffeescript', () => {
let robot = null
beforeEach(async () => {
const CoffeeRobot = require('hubot/index.js').Robot
robot = new CoffeeRobot('MockAdapter', false, 'TestHubot')
robot = new Robot('MockAdapter', false, 'TestHubot')
robot.alias = 'Hubot'
await robot.loadAdapter('./test/fixtures/MockAdapter.coffee')
await robot.loadFile(path.resolve('./test/fixtures/'), 'TestScript.coffee')
Expand Down

0 comments on commit 6c06337

Please sign in to comment.