Skip to content

Commit 97c93dd

Browse files
test: manual test (#724)
1 parent b2af379 commit 97c93dd

File tree

12 files changed

+916
-799
lines changed

12 files changed

+916
-799
lines changed

package-lock.json

Lines changed: 719 additions & 694 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"security": "npm audit",
2626
"test:only": "cross-env NODE_ENV=test jest",
2727
"test:watch": "cross-env NODE_ENV=test jest --watch",
28+
"test:manual": "npm run build && webpack-dev-server test/manual/src/index.js --open --config test/manual/webpack.config.js",
2829
"test:coverage": "cross-env NODE_ENV=test jest --collectCoverageFrom=\"src/**/*.js\" --coverage",
2930
"pretest": "npm run lint",
3031
"test": "cross-env NODE_ENV=test npm run test:coverage",
@@ -51,9 +52,9 @@
5152
"@commitlint/config-conventional": "^8.1.0",
5253
"@webpack-contrib/defaults": "^5.0.2",
5354
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
54-
"babel-jest": "^24.8.0",
55-
"bootstrap-sass": "^3.3.5",
55+
"babel-jest": "^24.9.0",
5656
"bootstrap": "^4.3.1",
57+
"bootstrap-sass": "^3.3.5",
5758
"chokidar": "^2.1.6",
5859
"commitlint-azure-pipelines-cli": "^1.0.2",
5960
"cross-env": "^5.2.0",
@@ -65,13 +66,15 @@
6566
"eslint-plugin-import": "^2.14.0",
6667
"file-loader": "^4.2.0",
6768
"husky": "^3.0.3",
68-
"jest": "^24.8.0",
69+
"jest": "^24.9.0",
6970
"jest-junit": "^7.0.0",
71+
"jquery": "^3.4.1",
7072
"lint-staged": "^9.2.1",
7173
"memory-fs": "^0.4.1",
7274
"node-sass": "^4.5.0",
7375
"npm-run-all": "^4.1.5",
7476
"nyc": "^14.1.1",
77+
"popper.js": "^1.15.0",
7578
"prettier": "^1.15.2",
7679
"raw-loader": "^3.1.0",
7780
"sass": "^1.3.0",

test/extractText/webpack.config.js

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

test/hmr/README.md

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

test/hmr/entry.js

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

test/hmr/index.html

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

test/hmr/simple.scss

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

test/hmr/webpack.config.js

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

test/manual/index.html

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7+
<title>sass-loader manual test</title>
8+
</head>
9+
<body>
10+
<h1 class="text-center">sass-loader manual tests</h1>
11+
<div class="container">
12+
<div class="row">
13+
<div class="col-sm">
14+
<div class="card my-2">
15+
<svg
16+
class="bd-placeholder-img card-img-top"
17+
width="100%"
18+
height="180"
19+
xmlns="http://www.w3.org/2000/svg"
20+
preserveAspectRatio="xMidYMid slice"
21+
focusable="false"
22+
role="img"
23+
aria-label="Placeholder: Image cap"
24+
>
25+
<title>Placeholder</title>
26+
<rect width="100%" height="100%" fill="#868e96"></rect>
27+
</svg>
28+
<div class="card-body">
29+
<h5 class="card-title">Card title</h5>
30+
<p class="card-text">
31+
Some quick example text to build on the card title and make up the
32+
bulk of the card's content.
33+
</p>
34+
<a href="#" class="btn btn-primary">Go somewhere</a>
35+
<div class="dropdown">
36+
<button
37+
class="btn btn-secondary dropdown-toggle my-2"
38+
type="button"
39+
id="dropdownMenuButton-1"
40+
data-toggle="dropdown"
41+
aria-haspopup="true"
42+
aria-expanded="false"
43+
>
44+
Dropdown button
45+
</button>
46+
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
47+
<a class="dropdown-item" href="#">Action</a>
48+
<a class="dropdown-item" href="#">Another action</a>
49+
<a class="dropdown-item" href="#">Something else here</a>
50+
</div>
51+
</div>
52+
</div>
53+
</div>
54+
</div>
55+
<div class="col-sm">
56+
<div class="card my-2">
57+
<svg
58+
class="bd-placeholder-img card-img-top"
59+
width="100%"
60+
height="180"
61+
xmlns="http://www.w3.org/2000/svg"
62+
preserveAspectRatio="xMidYMid slice"
63+
focusable="false"
64+
role="img"
65+
aria-label="Placeholder: Image cap"
66+
>
67+
<title>Placeholder</title>
68+
<rect width="100%" height="100%" fill="#868e96"></rect>
69+
</svg>
70+
<div class="card-body">
71+
<h5 class="card-title">Card title</h5>
72+
<p class="card-text">
73+
Some quick example text to build on the card title and make up the
74+
bulk of the card's content.
75+
</p>
76+
<a href="#" class="btn btn-primary">Go somewhere</a>
77+
<div class="dropdown">
78+
<button
79+
class="btn btn-secondary dropdown-toggle my-2"
80+
type="button"
81+
id="dropdownMenuButton-2"
82+
data-toggle="dropdown"
83+
aria-haspopup="true"
84+
aria-expanded="false"
85+
>
86+
Dropdown button
87+
</button>
88+
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
89+
<a class="dropdown-item" href="#">Action</a>
90+
<a class="dropdown-item" href="#">Another action</a>
91+
<a class="dropdown-item" href="#">Something else here</a>
92+
</div>
93+
</div>
94+
</div>
95+
</div>
96+
</div>
97+
<div class="col-sm">
98+
<div class="card my-2">
99+
<svg
100+
class="bd-placeholder-img card-img-top"
101+
width="100%"
102+
height="180"
103+
xmlns="http://www.w3.org/2000/svg"
104+
preserveAspectRatio="xMidYMid slice"
105+
focusable="false"
106+
role="img"
107+
aria-label="Placeholder: Image cap"
108+
>
109+
<title>Placeholder</title>
110+
<rect width="100%" height="100%" fill="#868e96"></rect>
111+
</svg>
112+
<div class="card-body">
113+
<h5 class="card-title">Card title</h5>
114+
<p class="card-text">
115+
Some quick example text to build on the card title and make up the
116+
bulk of the card's content.
117+
</p>
118+
<a href="#" class="btn btn-primary">Go somewhere</a>
119+
<div class="dropdown">
120+
<button
121+
class="btn btn-secondary dropdown-toggle my-2"
122+
type="button"
123+
id="dropdownMenuButton-3"
124+
data-toggle="dropdown"
125+
aria-haspopup="true"
126+
aria-expanded="false"
127+
>
128+
Dropdown button
129+
</button>
130+
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
131+
<a class="dropdown-item" href="#">Action</a>
132+
<a class="dropdown-item" href="#">Another action</a>
133+
<a class="dropdown-item" href="#">Something else here</a>
134+
</div>
135+
</div>
136+
</div>
137+
</div>
138+
</div>
139+
</div>
140+
</div>
141+
142+
143+
<script async defer src="/dist/main.js"></script>
144+
</body>
145+
</html>

test/manual/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import 'bootstrap';
2+
import './style.scss';

0 commit comments

Comments
 (0)