Skip to content

Commit

Permalink
Rewrote the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knowledgecode committed Jan 3, 2023
1 parent 5a86fa4 commit 26c191d
Show file tree
Hide file tree
Showing 12 changed files with 867 additions and 1,092 deletions.
35 changes: 7 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
version: 2
version: 2.1

jobs:
build:
docker:
- image: circleci/node:latest
steps:
- checkout
- run:
name: Update npm
command: 'sudo npm install -g npm@latest'
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install npm wee
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
test:
build_and_test:
docker:
- image: circleci/node:latest
- image: cimg/node:current
steps:
- checkout
- run:
name: Test
command: npm test
- run: npm install
- run: npm test

workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
- build_and_test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
dist
node_modules
50 changes: 0 additions & 50 deletions esm/jquery-param.es.js

This file was deleted.

5 changes: 0 additions & 5 deletions esm/jquery-param.es.min.js

This file was deleted.

58 changes: 0 additions & 58 deletions jquery-param.js

This file was deleted.

5 changes: 0 additions & 5 deletions jquery-param.min.js

This file was deleted.

35 changes: 0 additions & 35 deletions rollup.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import terser from '@rollup/plugin-terser';

export default [
{
input: 'src/index.js',
output: [
{ file: 'dist/esm/jquery-param.js', format: 'es' },
{ file: 'dist/esm/jquery-param.mjs', format: 'es' },
{ file: 'dist/umd/jquery-param.js', format: 'umd', name: 'param' }
],
plugins: [terser()]
}
];
22 changes: 0 additions & 22 deletions test/test-suite.js

This file was deleted.

25 changes: 0 additions & 25 deletions test/test.html

This file was deleted.

Loading

0 comments on commit 26c191d

Please sign in to comment.