Skip to content

Commit

Permalink
Merge branch 'next' into fix-5490
Browse files Browse the repository at this point in the history
  • Loading branch information
BiswaViraj committed May 7, 2024
2 parents 2d9de8b + 5cafc05 commit a6b1642
Show file tree
Hide file tree
Showing 894 changed files with 5,415 additions and 16,534 deletions.
13 changes: 11 additions & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,16 @@
"websockets",
"whatsapp",
"whatsappbusiness",
"parens"
"parens",
"Webpush",
"webpush",
"xkeysib",
"firestore",
"firsttris",
"esbenp",
"npmjs",
"maxage",
"unpublish"
],
"flagWords": [],
"patterns": [
Expand Down Expand Up @@ -730,6 +739,6 @@
".env.development",
".env.local",
".env.production",
".env.test",
".env.test"
]
}
8 changes: 7 additions & 1 deletion .github/actions/run-worker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ inputs:
description: 'The Launch Darkly SDK key to use'
required: false
default: ''
ee:
description: 'Whether to run the EE version of the tests'
required: false
default: false
type: boolean

runs:
using: composite

steps:
- name: Build worker
shell: bash
run: CI='' pnpm build:worker
run: CI='' pnpm build:worker --skip-nx-cache

- name: Start worker
shell: bash
env:
LAUNCH_DARKLY_SDK_KEY: ${{ inputs.launch_darkly_sdk_key }}
NOVU_ENTERPRISE: ${{ inputs.ee }}
run: cd apps/worker && pnpm start:test &

- name: Wait on worker
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reusable-api-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
name: Run worker
with:
launch_darkly_sdk_key: ${{ secrets.LAUNCH_DARKLY_SDK_KEY }}
ee: ${{ needs.check_submodule_token.outputs.has_token == 'true' && inputs.ee }}

# Runs a single command using the runners shell
- name: Build API
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/reusable-webhook-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ jobs:
- name: Run a test
run: |
cd apps/webhook && pnpm test:e2e
pnpm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,4 @@ docker/.env
# EE Symlinked folders - we need these for the EE build
# @TODO - find a way to remove the symlinks without breaking the build
!enterprise/packages/**/src
/.idea/jsLinters/eslint.xml
2 changes: 1 addition & 1 deletion .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/nx-angular-config.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .idea/runConfigurations/RUN_LOCAL_ENV.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .source
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ We are more than happy to help you. If you are getting any errors or facing prob
Novu is licensed under the MIT License - see the [LICENSE](https://github.com/novuhq/novu/blob/main/LICENSE) file for details.

## 💪 Thanks To All Contributors

Thanks a lot for spending your time helping Novu grow. Keep rocking 🥂

<a href="https://novu.co/contributors?utm_source=github">
Expand Down
7 changes: 0 additions & 7 deletions _templates/provider/new/.czrc.ejs.t

This file was deleted.

7 changes: 0 additions & 7 deletions _templates/provider/new/.eslintrc.json.ejs.t

This file was deleted.

13 changes: 0 additions & 13 deletions _templates/provider/new/.gitignore.ejs.t

This file was deleted.

14 changes: 0 additions & 14 deletions _templates/provider/new/README.ejs.t

This file was deleted.

9 changes: 0 additions & 9 deletions _templates/provider/new/jest.config.js.ejs.t

This file was deleted.

82 changes: 0 additions & 82 deletions _templates/provider/new/package.ejs.t

This file was deleted.

13 changes: 0 additions & 13 deletions _templates/provider/new/prompt.js

This file was deleted.

5 changes: 0 additions & 5 deletions _templates/provider/new/src/index.ejs.t

This file was deleted.

36 changes: 0 additions & 36 deletions _templates/provider/new/src/lib/provider.ejs.t

This file was deleted.

11 changes: 0 additions & 11 deletions _templates/provider/new/src/lib/test.provider.spec.ejs.t

This file was deleted.

14 changes: 0 additions & 14 deletions _templates/provider/new/tsconfig.json.ejs.t

This file was deleted.

15 changes: 0 additions & 15 deletions _templates/provider/new/tsconfig.module.json.ejs.t

This file was deleted.

29 changes: 29 additions & 0 deletions apps/api/e2e/echo.server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import * as http from 'http';
import * as express from 'express';
import { serve } from '@novu/echo/express';
import { Echo } from '@novu/echo';

class EchoServer {
private server: express.Express;
private app: http.Server;
private port = 9999;
public echo = new Echo({ devModeBypassAuthentication: true });

get serverPath() {
return `http://localhost:${this.port}`;
}

async start() {
this.server = express();
this.server.use(express.json());
this.server.use(serve({ client: this.echo }));

this.app = await this.server.listen(this.port);
}

async stop() {
await this.app.close();
}
}

export const echoServer = new EchoServer();
4 changes: 4 additions & 0 deletions apps/api/e2e/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as sinon from 'sinon';
import * as chai from 'chai';

import { bootstrap } from '../src/bootstrap';
import { echoServer } from './echo.server';

const dalService = new DalService();

Expand All @@ -13,11 +14,14 @@ before(async () => {
*/
chai.config.truncateThreshold = 0;
await testServer.create(await bootstrap());
await echoServer.start();

await dalService.connect(process.env.MONGO_URL);
});

after(async () => {
await testServer.teardown();
await echoServer.stop();

try {
await dalService.destroy();
Expand Down

0 comments on commit a6b1642

Please sign in to comment.