Skip to content

Commit 0d387dc

Browse files
committed
tyring to setup EM
1 parent 1b612ad commit 0d387dc

22 files changed

Lines changed: 4405 additions & 141 deletions

File tree

js_npm/graphql/react-finland/.gitignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

js_npm/graphql/react-finland/content/people/naman.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import Keyword from "../../server/schema/keywords";
33

44
const person: Contact = {
55
name: "Naman Goel",
6-
about: "Maintainer of Stylex, Facebook's not-yet-open-source CSS-in-JS framework. Working on Web Designs System Components at Facebook.",
6+
about:
7+
"Maintainer of Stylex, Facebook's not-yet-open-source CSS-in-JS framework. Working on Web Designs System Components at Facebook.",
78
image: {
89
url: "people/naman.jpg",
910
},
@@ -25,7 +26,16 @@ const person: Contact = {
2526
},
2627
city: "San Francisco",
2728
},
28-
keywords: [Keyword.REACT, Keyword.LIBRARIES, Keyword.STYLING, Keyword.TOOLING, Keyword.TYPESCRIPT, Keyword.WEBPACK, Keyword.BABEL, Keyword.NEXT_JS],
29+
keywords: [
30+
Keyword.REACT,
31+
Keyword.LIBRARIES,
32+
Keyword.STYLING,
33+
Keyword.TOOLING,
34+
Keyword.TYPESCRIPT,
35+
Keyword.WEBPACK,
36+
Keyword.BABEL,
37+
Keyword.NEXT_JS,
38+
],
2939
type: [ContactType.SPEAKER],
3040
};
3141

js_npm/graphql/react-finland/content/react-finland-2018/talks/eemeli-aro-2.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const talk: Session = {
1010
type: SessionType.LIGHTNING_TALK,
1111
keywords: [Keyword.TOOLING],
1212
urls: {
13-
web:
14-
"https://docs.google.com/presentation/d/e/2PACX-1vRFz5W8H1CavTWgQvPMRG6gud5ZXxy4TT9QNL82Zy8radlIGKhDps6cHMkCpjr1rP0t4j-Ofhceq6_M/pub?start=false&loop=false&delayms=3000&slide=id.p",
13+
web: "https://docs.google.com/presentation/d/e/2PACX-1vRFz5W8H1CavTWgQvPMRG6gud5ZXxy4TT9QNL82Zy8radlIGKhDps6cHMkCpjr1rP0t4j-Ofhceq6_M/pub?start=false&loop=false&delayms=3000&slide=id.p",
1514
},
1615
};
1716

js_npm/graphql/react-finland/content/react-finland-2018/talks/eemeli-aro.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const talk: Session = {
99
type: SessionType.LIGHTNING_TALK,
1010
keywords: speaker.keywords,
1111
urls: {
12-
web:
13-
"https://docs.google.com/presentation/d/e/2PACX-1vTnz2eogdCs9XG8tOsXEJw4CRBncm_ZJ1uGLoN3aqwXjIF5cL_P9KvNYRYpJfaUQNVW4JYUOjzroicp/pub?start=false&loop=false&delayms=3000&slide=id.p",
12+
web: "https://docs.google.com/presentation/d/e/2PACX-1vTnz2eogdCs9XG8tOsXEJw4CRBncm_ZJ1uGLoN3aqwXjIF5cL_P9KvNYRYpJfaUQNVW4JYUOjzroicp/pub?start=false&loop=false&delayms=3000&slide=id.p",
1413
},
1514
};
1615

js_npm/graphql/react-finland/content/react-finland-2018/talks/juho-vepsalainen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const talk: Session = {
1010
type: SessionType.LIGHTNING_TALK,
1111
keywords: [Keyword.REACT, Keyword.STATIC_SITE_GENERATION, Keyword.WEBPACK],
1212
urls: {
13-
web:
14-
"https://docs.google.com/presentation/d/1dYwzzByKugHIrfA48cdhV0N-b2S2Ms_Ojd8I4ux_QRg/edit?usp=sharing",
13+
web: "https://docs.google.com/presentation/d/1dYwzzByKugHIrfA48cdhV0N-b2S2Ms_Ojd8I4ux_QRg/edit?usp=sharing",
1514
},
1615
};
1716

js_npm/graphql/react-finland/content/react-finland-2018/talks/patrick-hund.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ it is to use context now and how to migrate your old context code to the new API
1212
type: SessionType.LIGHTNING_TALK,
1313
keywords: speaker.keywords,
1414
urls: {
15-
web:
16-
"https://technology-ebay-de.github.io/get-rich-quick-with-react-context/#/",
15+
web: "https://technology-ebay-de.github.io/get-rich-quick-with-react-context/#/",
1716
},
1817
};
1918

js_npm/graphql/react-finland/content/react-finland-2020/talks/eli.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import speaker from "../../people/eli";
44
const talk: Session = {
55
people: [speaker],
66
title: "What is the deal with i18n?",
7-
description: "While about 51% of the world’s websites are in English, only about 25% of web users are English speakers. With half of the world’s population online, internationalisation is as relevant as ever. Let’s explore what i18n means, how it gets made on the web and what we should keep in mind or avoid when making the web more accessible to the world.",
7+
description:
8+
"While about 51% of the world’s websites are in English, only about 25% of web users are English speakers. With half of the world’s population online, internationalisation is as relevant as ever. Let’s explore what i18n means, how it gets made on the web and what we should keep in mind or avoid when making the web more accessible to the world.",
89
type: SessionType.TALK,
910
keywords: [],
1011
};
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
const http = require("http");
2+
const {AddressInfo} = require("net");
3+
4+
const em = require("evomaster-client-js");
5+
6+
const createApp = require("../server/app");
7+
8+
9+
10+
class AppController extends em.SutController {
11+
12+
setupForGeneratedTest(){
13+
return Promise.resolve();
14+
}
15+
16+
getInfoForAuthentication(){
17+
return [];
18+
}
19+
20+
getPreferredOutputFormat() {
21+
return em.dto.OutputFormat.JS_JEST;
22+
}
23+
24+
getProblemInfo() {
25+
const dto = new em.dto.GraphQLProblemDto();
26+
return dto;
27+
}
28+
29+
isSutRunning(){
30+
if (!this.server) {
31+
return false;
32+
}
33+
return this.server.listening;
34+
}
35+
36+
resetStateOfSUT(){
37+
return Promise.resolve();
38+
}
39+
40+
startSut(){
41+
42+
return new Promise( async (resolve) => {
43+
44+
const app = await createApp();
45+
46+
this.server = app.listen(0, "localhost", () => {
47+
this.port = this.server.address().port;
48+
resolve("http://localhost:" + this.port);
49+
});
50+
});
51+
}
52+
53+
stopSut() {
54+
return new Promise( (resolve) => this.server.close( () => resolve()));
55+
}
56+
57+
}
58+
59+
60+
module.exports = AppController;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const AppController = require("./app-driver");
2+
const em = require("evomaster-client-js");
3+
4+
5+
const controller = new em.EMController(new AppController());
6+
7+
8+
port = process.env.EM_PORT || 40100;
9+
controller.setPort(port);
10+
11+
controller.startTheControllerServer();
12+
13+

0 commit comments

Comments
 (0)