Skip to content

Commit 26c191d

Browse files
committed
Rewrote the tests
1 parent 5a86fa4 commit 26c191d

File tree

12 files changed

+867
-1092
lines changed

12 files changed

+867
-1092
lines changed

.circleci/config.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
1-
version: 2
1+
version: 2.1
2+
23
jobs:
3-
build:
4-
docker:
5-
- image: circleci/node:latest
6-
steps:
7-
- checkout
8-
- run:
9-
name: Update npm
10-
command: 'sudo npm install -g npm@latest'
11-
- restore_cache:
12-
key: dependency-cache-{{ checksum "package.json" }}
13-
- run:
14-
name: Install npm wee
15-
command: npm install
16-
- save_cache:
17-
key: dependency-cache-{{ checksum "package.json" }}
18-
paths:
19-
- node_modules
20-
test:
4+
build_and_test:
215
docker:
22-
- image: circleci/node:latest
6+
- image: cimg/node:current
237
steps:
248
- checkout
25-
- run:
26-
name: Test
27-
command: npm test
9+
- run: npm install
10+
- run: npm test
2811

2912
workflows:
30-
version: 2
3113
build_and_test:
3214
jobs:
33-
- build
34-
- test:
35-
requires:
36-
- build
15+
- build_and_test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
2+
dist
23
node_modules

esm/jquery-param.es.js

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

esm/jquery-param.es.min.js

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

jquery-param.js

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

jquery-param.min.js

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

rollup.config.js

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

rollup.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import terser from '@rollup/plugin-terser';
2+
3+
export default [
4+
{
5+
input: 'src/index.js',
6+
output: [
7+
{ file: 'dist/esm/jquery-param.js', format: 'es' },
8+
{ file: 'dist/esm/jquery-param.mjs', format: 'es' },
9+
{ file: 'dist/umd/jquery-param.js', format: 'umd', name: 'param' }
10+
],
11+
plugins: [terser()]
12+
}
13+
];

test/test-suite.js

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

test/test.html

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

0 commit comments

Comments
 (0)