Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Sep 22, 2024
1 parent df1ac86 commit 52e38ad
Show file tree
Hide file tree
Showing 5 changed files with 6,281 additions and 2,441 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish Package to npmjs
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run test
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testPathIgnorePatterns: ['node_modules/*', "dist/*"],
};
6 changes: 6 additions & 0 deletions nodes/ChatWoot/ChatWoot.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {ChatWoot} from "./ChatWoot.node";

test("smoke", () => {
const node = new ChatWoot()
expect(node.description.properties).toBeDefined()
})
Loading

0 comments on commit 52e38ad

Please sign in to comment.