-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] backend tests working but frontend not working because angular-…
…cli does not support monorepo yet see angular/angular-cli/issues/7097 and angular/angular-cli/issues/3864
- Loading branch information
1 parent
f158d97
commit 92f591f
Showing
11 changed files
with
99 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Test } from '@nestjs/testing'; | ||
|
||
import { AppController } from './app.controller'; | ||
|
||
describe(`AppController`, () => { | ||
let appController: AppController; | ||
|
||
beforeEach(async () => { | ||
const myModule = await Test.createTestingModule({ | ||
controllers: [AppController], | ||
}).compile(); | ||
|
||
appController = myModule.get<AppController>(AppController); | ||
}); | ||
|
||
describe(`Get /`, () => { | ||
it(`should return "Hello World!"`, () => { | ||
expect(appController.root()).toBe(`Hello World!`); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
backend/src/modules/app.module.ts → backend/src/features/features.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Module } from '@nestjs/common'; | ||
|
||
@Module({ | ||
modules: [], | ||
imports: [], | ||
}) | ||
export class ApplicationModule {} | ||
export class FeaturesModule {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"watch": ["backend/src"], | ||
"ext": "ts", | ||
"ignore": ["backend/src/**/*.spec.ts"], | ||
"exec": "node backend/index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,12 +125,6 @@ | |
dependencies: | ||
tslib "^1.7.1" | ||
|
||
"@angular/[email protected]": | ||
version "5.2.6" | ||
resolved "https://registry.yarnpkg.com/@angular/core/-/core-5.2.6.tgz#483fb0b720d563d3ec4d1895878249beafa39b9b" | ||
dependencies: | ||
tslib "^1.7.1" | ||
|
||
"@angular/[email protected]": | ||
version "5.2.7" | ||
resolved "https://registry.yarnpkg.com/@angular/core/-/core-5.2.7.tgz#e5607fc39d90f9fe4fbaaeeeb6cdb9371966bfe3" | ||
|
@@ -3387,6 +3381,12 @@ evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: | |
md5.js "^1.3.4" | ||
safe-buffer "^5.1.1" | ||
|
||
exec-sh@^0.2.0: | ||
version "0.2.1" | ||
resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.1.tgz#163b98a6e89e6b65b47c2a28d215bc1f63989c38" | ||
dependencies: | ||
merge "^1.1.3" | ||
|
||
execa@^0.7.0: | ||
version "0.7.0" | ||
resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" | ||
|
@@ -4474,8 +4474,8 @@ html-entities@^1.2.0: | |
resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.2.1.tgz#0df29351f0721163515dfb9e5543e5f6eed5162f" | ||
|
||
html-minifier@^3.2.3: | ||
version "3.5.9" | ||
resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.5.9.tgz#74424014b872598d4bb0e20ac420926ec61024b6" | ||
version "3.5.10" | ||
resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.5.10.tgz#8522c772c388db81aa5c26f62033302d906ea1c7" | ||
dependencies: | ||
camel-case "3.0.x" | ||
clean-css "4.1.x" | ||
|
@@ -5752,8 +5752,8 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/libqp/-/libqp-1.1.0.tgz#f5e6e06ad74b794fb5b5b66988bf728ef1dedbe8" | ||
|
||
license-webpack-plugin@^1.0.0: | ||
version "1.1.2" | ||
resolved "https://registry.yarnpkg.com/license-webpack-plugin/-/license-webpack-plugin-1.1.2.tgz#283519c77ef3878f467c50fcdcf9b5760bfbcd4b" | ||
version "1.2.3" | ||
resolved "https://registry.yarnpkg.com/license-webpack-plugin/-/license-webpack-plugin-1.2.3.tgz#170272565db467d692ca782e4a6ad90cf81553ec" | ||
dependencies: | ||
ejs "^2.5.7" | ||
|
||
|
@@ -6286,6 +6286,10 @@ [email protected]: | |
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" | ||
|
||
merge@^1.1.3: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" | ||
|
||
methods@~1.1.2: | ||
version "1.1.2" | ||
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" | ||
|
@@ -9368,8 +9372,8 @@ uglify-es@^3.3.4: | |
source-map "~0.6.1" | ||
|
||
[email protected]: | ||
version "3.3.12" | ||
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.3.12.tgz#efd87c16a1f4c674a8a5ede571001ef634dcc883" | ||
version "3.3.13" | ||
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.3.13.tgz#8a1a89eeb16e2d6a66b0db2b04cb871af3c669cf" | ||
dependencies: | ||
commander "~2.14.1" | ||
source-map "~0.6.1" | ||
|
@@ -9685,6 +9689,13 @@ [email protected]: | |
request "^2.78.0" | ||
rx "^4.1.0" | ||
|
||
[email protected]: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/watch/-/watch-1.0.2.tgz#340a717bde765726fa0aa07d721e0147a551df0c" | ||
dependencies: | ||
exec-sh "^0.2.0" | ||
minimist "^1.2.0" | ||
|
||
watchpack@^1.4.0: | ||
version "1.5.0" | ||
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.5.0.tgz#231e783af830a22f8966f65c4c4bacc814072eed" | ||
|